Issue
How can I override the label 'no results found' in p-multiselect on Angular? I'm able to change the default label, but I have not found any solution on how to override the empty message.
That's what I wrote:
<p-multiSelect
[options]="countries"
formControlName="selectedCountries"
[defaultLabel]="'find'"
selectedItemsLabel="{0} items selected"
autoWidth="false" [style]="{'width':'100%'}"
display="chip"></p-multiSelect>
I found this solution:
.ui-multiselect-panel .ui-multiselect-empty-message {
display: none !important;
}
But of course this deletes the entire div.
Solution
emptyFilterMessage="Your custom message"
You can find it and all the other multiselect properties in PrimeNG Docs:
https://www.primefaces.org/primeng/showcase/#/multiselect
Answered By - ShayD
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.