Skip to content

Latest commit

 

History

History
60 lines (36 loc) · 3.69 KB

File metadata and controls

60 lines (36 loc) · 3.69 KB

is-multiselect

Properties

Property Attribute Description Type Default
closeOnSelect close-on-select Enable/disable closing after selecting an option boolean false
disabled disabled If true, the user cannot interact with the select. boolean false
items -- The options list items. ISelectItem[] []
labelSelected label-selected The label when option is selected. string '\u2713'
labelTo -- The label to remove or select. ILabelTo { remove: 'Click to Remove', select: 'Click to Select' }
limit limit Limit the display of selected options. The rest will be hidden within the limitText string. number 3
limitText -- Function that process the message shown when selected elements pass the defined limit. Function (count: number) => 'and ' + count + ' more'
max max Maximum selected items can be selected. number undefined
placeholder placeholder The text to display when not selected items. string "Pick some"
selected -- The selected items. ISelectItem[] []
showSelectedBadge show-selected-badge If true, The badges will show selected items. boolean false

Events

Event Description Type
selectedChanged Emitted when the selected items has changed. CustomEvent<any>

Methods

getSelected() => Promise<ISelectItem[] | undefined>

Get the selected items.

Returns

Type: Promise<ISelectItem[]>

Dependencies

Depends on

Graph

graph TD;
  is-multiselect --> is-badge
  style is-multiselect fill:#f9f,stroke:#333,stroke-width:4px
Loading

Built with StencilJS