Multi Select
<vscode-multi-select>
Allows to select multiple items from a list of options.
When participating in a form, it supports the :invalid
pseudo class. Otherwise the error styles
can be applied through the invalid
property.
Properties
- combobox reflected
Attribute combobox Type boolean
Default false
- defaultValue
Attribute default-value Type string[]
Default []
- disabled reflected
Attribute disabled Type boolean
- filter
Search method in the filtered list within the combobox mode.
- contains - The list item includes the searched pattern at any position.
- fuzzy - The list item contains the letters of the search pattern in the same order, but at any position.
- startsWith - The search pattern matches the beginning of the searched text.
- startsWithPerTerm - The search pattern matches the beginning of any word in the searched text.
Attribute filter Type 'contains' | 'fuzzy' | 'startsWith' | 'startsWithPerTerm'
Default 'fuzzy'
- focused reflected
Attribute focused Type boolean
Default false
- formAssociated static
Type boolean
Default true
- invalid reflected
Sets the invalid state manually.
Attribute invalid Type boolean
Default false
- name reflected
Attribute name Type string | undefined
Default undefined
- options
Attribute options Type Option[]
- position reflected
Position of the options list when visible.
Attribute position Type 'above' | 'below'
Default 'below'
- required reflected
Attribute required Type boolean
Default false
- selectedIndexes
Type number[]
- validationMessage readonly
Type string
- validity readonly
Type ValidityState
- value
Attribute value Type string[]
- version readonly
VSC Element version
form readonly
willValidate readonly
Methods
- checkValidity
Return boolean
- reportValidity
Return boolean
Events
- change
Type Event
- input
Type Event
- vsc-change deprecated
Type CustomEvent
Custom CSS Properties
- --dropdown-z-index
workaround for dropdown z-index issues
Default 2
--vscode-badge-background
--vscode-badge-foreground
--vscode-focusBorder
--vscode-font-family
--vscode-font-size
--vscode-font-weight
--vscode-foreground
--vscode-list-activeSelectionBackground
--vscode-list-activeSelectionForeground
--vscode-list-focusHighlightForeground
--vscode-list-focusOutline
--vscode-list-highlightForeground
--vscode-list-hoverBackground
--vscode-list-hoverBackground
--vscode-list-hoverBackground
--vscode-list-hoverForeground
--vscode-settings-checkboxBackground
--vscode-settings-dropdownBackground
--vscode-settings-dropdownBorder
--vscode-settings-dropdownListBorder
--vscode-settings-textInputBackground