Skip to content

fix: #18053 - Ability to customize message on filtered picklist #18106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion packages/primeng/src/picklist/picklist.ts
Original file line number Diff line number Diff line change
Expand Up @@ -144,6 +144,7 @@ import { PickListStyle } from './style/pickliststyle';
[dragdrop]="dragdrop"
(onDrop)="onDrop($event, SOURCE_LIST)"
(onFilter)="onSourceFilter.emit($event)"
[emptyFilterMessage]="emptyFilterMessage"
>
<ng-container *ngIf="sourceHeaderTemplate || _sourceHeaderTemplate || sourceHeader">
<ng-template #header>
Expand Down Expand Up @@ -632,7 +633,11 @@ export class PickList extends BaseComponent implements AfterViewChecked, AfterCo
* @group Props
*/
@Input() moveAllToSourceProps: ButtonProps;

/**
* Text to display when filtering does not return any results.
* @group Props
*/
@Input() emptyFilterMessage: string | undefined;
/**
* Indicates the width of the screen at which the component should change its behavior.
* @group Props
Expand Down
Loading