Select - Code
Basic
Editable
Multiselect
Validation
API for ix-select
Properties
Show clear button
allow-clearbooleanfalseARIA label for the add item
aria-label-add-itemstring'Add item'ARIA label for the clear icon button
Will be set as aria-label on the nested HTML button element
aria-label-clear-icon-buttonstring | undefined'Clear selection'Show "all" chip when all items are selected in multiple mode
collapse-multiple-selectionbooleanfalseIf true the select will be in disabled state
disabledbooleanfalseThe maximum width of the dropdown element with value and unit (e.g. "200px").
By default the maximum width of the dropdown element is set to 100%.
dropdown-max-widthstring | undefinedThe width of the dropdown element with value and unit (e.g. "200px").
dropdown-widthstring | undefinedSelect is extendable
editablebooleanfalseEnable Popover API rendering for dropdown.
enable-top-layerbooleanfalseHelper text for the select component
helper-textstring | undefinedHide list header
hide-list-headerbooleanfalseChip label for all selected items in multiple mode.
i18n-all-selectedstring'All'Accessible label template for the overflow indicator chip shown in multiple
mode when not all selected chips fit on a single row. The {count}
placeholder is replaced with the number of hidden items (e.g. "3 more").
i18n-more-itemsstring'{count} more'Information inside of dropdown if no items where found with current filter text
i18n-no-matchesstring'No matches'Input field placeholder
i18n-placeholderstring'Select an option'Input field placeholder for editable select
i18n-placeholder-editablestring'Type of select option'Prefix for the accessible name of the close control on a selected chip in multiple mode.
The chip label or value is appended (e.g. "Remove Item 1").
i18n-remove-selected-itemstring'Remove'Select list header
i18n-select-list-headerstring'Select an option'Info text for the select component
info-textstring | undefinedError text for the select component
invalid-textstring | undefinedLabel for the select component
labelstring | undefinedSelection mode
mode"multiple" | "single"'single'A string that represents the element's name attribute,
containing a name that identifies the element when submitting the form.
namestring | undefinedIf true the select will be in readonly mode
readonlybooleanfalseA Boolean attribute indicating that an option with a non-empty string value must be selected
requiredbooleanfalseShow helper, error, info, warning text as tooltip
show-text-as-tooltipboolean | undefinedValid text for the select component
valid-textstring | undefinedCurrent selected value.
This corresponds to the value property of ix-select-items
valuestring | string[]''Warning text for the select component
warning-textstring | undefinedMethods
Events
Item added to selection
addItemstringEvent dispatched whenever the text input changes.
inputChangestringBlur input
ixBlurvoidValue changed
valueChangestring | string[]Slot
Select items.
API for ix-select-item
Properties
Disable the item. A disabled item cannot be selected via mouse or keyboard
and is excluded from the focusable items of the parent ix-select.
disabledbooleanfalseDisplayed name of the item
labelstring | undefinedFlag indicating whether the item is selected
selectedbooleanfalseThe value of the item.
Important: The select component uses string values to handle selection and will call toString() on this value.
Therefor a string should be passed to value to prevent unexpected behavior.
valuestringEvents
Item clicked
itemClickstring