options |
array |
[] |
Dropdown options |
onSelect |
function |
func |
Callback function will invoked on select event. Params are selectedList & selectedItem |
onRemove |
function |
func |
Callback function will invoked on remove event. Params are selectedList & removedItem |
singleSelect |
boolean |
false |
Make it true to behave like a normal dropdown(single select dropdown) |
selectedValues |
array |
[] |
Preselected value to persist in dropdown |
showCheckbox |
bool |
false |
To display checkbox option in the dropdown |
selectionLimit |
number |
-1 |
You can limit the number of items that can be selected in a dropdown |
placeholder |
string |
Select |
Placeholder text |
disablePreSelectedValues |
bool |
false |
Prevent to deselect the preselected values |
isObject |
bool |
true |
Make it false to display flat array of string or number Ex. ['Test1',1] |
displayValue |
string |
value |
Property name in the object to display in the dropdown. Refer Basic Usage section |
emptyRecordMsg |
string |
No options available |
Message to display when no records found |
groupBy |
string |
'' |
Group the popup list items with the corresponding category by the property name in the object |
closeIcon |
string |
circle |
Option to select close icon instead of default. Refer Close Icon section |
style |
object |
{} |
CSS Customization for multiselect. Refer below object for css customization. |
caseSensitiveSearch |
bool |
false |
Enables case sensitivity on the search field. |
closeOnSelect |
bool |
true |
Dropdown get closed on select/remove item from options. |
id |
string |
'' |
Id for the multiselect container and input field(In input field it will append '{id}_input'). |
avoidHighlightFirstOption |
bool |
false |
Based on flag first option will get highlight whenever optionlist open. |
hidePlaceholder |
bool |
false |
For true, placeholder will be hidden if there is any selected values in multiselect |
disable |
bool |
false |
For true, dropdown will be disabled |
onSearch |
function |
func |
Callback function invoked on search in multiselect, helpful to make api call to load data from api based on search. |
loading |
bool |
false |
If options is fetching from api, in the meantime, we can show loading... message in the list. |
loadingMessage |
any |
'' |
Custom loading message, it can be string or component. |
showArrow |
bool |
false |
For multiselect dropdown by default arrow wont show at the end, If required based on flag we can display |
keepSearchTerm |
bool |
false |
Whether or not to keep the search value after selecting or removing an item |