Refactor #1451 - For MultiSelect

pull/1994/head
mertsincan 2021-08-17 14:09:12 +03:00
parent c8421dcb0f
commit 6c6b9c0c68
1 changed files with 40 additions and 0 deletions

View File

@ -160,6 +160,30 @@ const MultiSelectProps = [
type: "string",
default: "pi pi-spinner pi-spin",
description: "Icon to display in loading state."
},
{
name: "maxSelectedLabels",
type: "number",
default: "null",
description: "Decides how many selected item labels to show at most."
},
{
name: "selectedItemsLabel",
type: "string",
default: "{0} items selected",
description: "Label to display after exceeding max selected labels."
},
{
name: "selectAll",
type: "boolean",
default: "false",
description: "Whether all data is selected."
},
{
name: "virtualScrollerOptions",
type: "object",
default: "null",
description: "Whether to use the virtualScroller feature. The properties of VirtualScroller component can be used like an object in it."
}
];
@ -211,6 +235,22 @@ const MultiSelectEvents = [
description: "Filter value"
}
]
},
{
name: "selectall-change",
description: "Callback to invoke when all data is selected.",
arguments: [
{
name: "event.originalEvent",
type: "object",
description: "Browser event"
},
{
name: "event.checked",
type: "boolean",
description: "Whether all data is selected."
}
]
}
];