From 6c6b9c0c6834a35516f07b169aaa643a6ecad4b3 Mon Sep 17 00:00:00 2001 From: mertsincan Date: Tue, 17 Aug 2021 14:09:12 +0300 Subject: [PATCH] Refactor #1451 - For MultiSelect --- api-generator/components/multiselect.js | 40 +++++++++++++++++++++++++ 1 file changed, 40 insertions(+) diff --git a/api-generator/components/multiselect.js b/api-generator/components/multiselect.js index 874296e69..5633618d1 100644 --- a/api-generator/components/multiselect.js +++ b/api-generator/components/multiselect.js @@ -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." + } + ] } ];