Skip to content

Ability to customize message on filtered picklist #18053

Open
@khayo

Description

@khayo

When i use the filter in the picklist, the default message is "No results found", I want to personalize this message, for something related to the picklist, for example, a list of cities, the message could be "no city found". I try the templates, and a lot of other things.
I look at the code of pick list and it's made of two listboxes. In listbox, you can change the message of the filter using the emptyFilterMessage parameter:

<p-listbox
  [options]="cities"
  [(ngModel)]="selectedCity"
  optionLabel="name"
  [filter]="true"
  class="w-full md:w-56"
  emptyFilterMessage="no city found" />

but in picklist this don't work

Metadata

Metadata

Labels

Type: EnhancementIssue contains an enhancement related to a specific component. Additional functionality has been add

Type

No type

Projects

Status

Review

Relationships

None yet

Development

No branches or pull requests

Issue actions