Skip to content

BaseSelectOptions

component to enable display of selected items and a select all

Props

Prop nameDescriptionTypeValuesDefault
selectedNumberTextspecify the text displayed for number of selected entries:
x {selectedNumberText}
string-'entries selected'
selectTextthe text displayed for select / deselect allstring-'All'
deselectTextthe text displayed for select / deselect allstring-'None'
listprovide a list of currently visible entriesarray-[]
selectedListprovide a list of selected entriesarray-[]
selectAllDisableddisable the button by setting this prop to trueboolean-false
reverseBy default, the "All/None" button appears on the right, and the counter of
selected items appears on the left. Set this to true to reverse the order.
boolean-false

Events

Event namePropertiesDescription
selectedundefined boolean - were all entries selectedemitted on select all button click

Slots

NameDescriptionBindings
selectedTexthere number of selected entries is indicated - replace with this slot for customization.

Demo

Example with a BaseMenuList with BaseSelectOptions above.