Page 1 of 1

Remote trigger multiselect

Posted: 16 Jan 2019, 18:15
by g33
Hi, is it possible to hide the multi-select dropdown field and just have the dropdown body show up under a trigger button?

Like this?

Image

Re: Remote trigger multiselect

Posted: 17 Jan 2019, 17:37
by g33
Instead of remote trigger, is it possible to do two things:

1) Hide the multiselect label? I want to hide the default label and the label for all selected items (i.e., just show the dropdown icon). I tried the following, but the label still rendered

.ui-multiselect-label {
display:none !important;
}

2) Change the multiselect dropdown caret to another icon. I tried the following, but did not work:

[dropdownIcon]="pi pi-chevron-right"

THank you.

Re: Remote trigger multiselect

Posted: 18 Jan 2019, 16:14
by yigitfindikli
Hi,
You can use defaultLabel property for hiding default label. You can use displaySelectedLabel property for hiding item labels. Your icon problem seems to be bug, you can create ticket at here; https://github.com/primefaces/primeng/issues

Re: Remote trigger multiselect

Posted: 19 Jan 2019, 10:38
by g33
Thank you. displaySelectedLabel worked well!

Re: Remote trigger multiselect

Posted: 19 Jan 2019, 11:33
by yigitfindikli
g33 wrote:
19 Jan 2019, 10:38
Thank you. displaySelectedLabel worked well!
Glad to hear!

Re: Remote trigger multiselect

Posted: 24 Jan 2019, 10:10
by cagatay.civici
dropdownIcon issue is fixed for upcoming 7.0.5.