tailosoft / jhipster-primeng-blueprint

This blueprint can be used to generate jhipster project with primeng frontend instead of bootstrap (work in progress)
Apache License 2.0
26 stars 20 forks source link

multiselect on list screens are not populating for referenced fields #31

Closed smunir closed 3 years ago

smunir commented 3 years ago

multiselects for referred fields on list screen are not populating. Tested it with 7.0.2

yelhouti commented 3 years ago

This by design for lazy multi selectes, you should input something in the filter before

smunir commented 3 years ago

Oooh, I wasn't aware of that. I want a few multi selects pre-populated but [lazyLoadOnInit]="true" appears not to be working. Do I need to make some other changes too?

yelhouti commented 3 years ago

prepopulated by selected values or unselected ones ?

smunir commented 3 years ago

pre-population of all options on screen load

yelhouti commented 3 years ago

@smunir Do not use lazy loading then...

And for the record, for [lazyLoadOnInit]="true" to work you, need to put something in the filter value. if you know what you want to have preselected you can use the new : lazySelectedOptions

https://github.com/yelhouti/primeng/blob/all-fixes/src/app/components/multiselect/multiselect.ts

smunir commented 3 years ago

Current UI isn't working well either. Please checkout these screenshots. Search button has to be clicked and filter typed without any filter field visible

Screen Shot 2021-04-11 at 4 48 51 AM Screen Shot 2021-04-11 at 4 49 09 AM Screen Shot 2021-04-11 at 4 50 28 AM
smunir commented 3 years ago

OK I will check out the fix detail. Please check out the screenshots. Closing this issue. Thanks

yelhouti commented 3 years ago

@smunir indeed a design, issue, I need to make i bigger to have the filter field visible

smunir commented 3 years ago

@yelhouti Yup a little tweaking in design is needed for this. I am not good in design and CSS, probably you would have to scarify a few minutes of your time whenever feasible