Skip to main content

Select

Form-ready since 2.6.0

Development

Examples

Basic

PreviewAngularReactVueJavaScript

Editable

PreviewAngularReactVueJavaScript

Multiselect

PreviewAngularReactVueJavaScript

Validation

Since 2.6.0
PreviewAngularReactVueJavaScript

API (ix-select)

Properties

Name
Description and specifications
allowClear
Show clear button
Attribute:
allow-clear
Type:
boolean
Default:
false
disabled
If true the select will be in disabled state
Attribute:
disabled
Type:
boolean
Default:
false
dropdownMaxWidth
Since 2.7.0
The maximum width of the dropdown element with value and unit (e.g. "200px" or "12.5rem"). By default the maximum width of the dropdown element is set to 100%.
Attribute:
dropdown-max-width
Type:
string | undefined
dropdownWidth
Since 2.7.0
The width of the dropdown element with value and unit (e.g. "200px" or "12.5rem").
Attribute:
dropdown-width
Type:
string | undefined
editable
Select is extendable
Attribute:
editable
Type:
boolean
Default:
false
helperText
Since 2.6.0
Helper text for the select component
Attribute:
helper-text
Type:
string | undefined
hideListHeader
Since 1.5.0
Hide list header
Attribute:
hide-list-header
Type:
boolean
Default:
false
i18nNoMatches
Since 1.5.0
Information inside of dropdown if no items where found with current filter text
Attribute:
i-1-8n-no-matches
Type:
string
Default:
'No matches'
i18nPlaceholder
Input field placeholder
Attribute:
i-1-8n-placeholder
Type:
string
Default:
'Select an option'
i18nPlaceholderEditable
Input field placeholder for editable select
Attribute:
i-1-8n-placeholder-editable
Type:
string
Default:
'Type of select option'
i18nSelectListHeader
Select list header
Attribute:
i-1-8n-select-list-header
Type:
string
Default:
'Select an option'
infoText
Since 2.6.0
Info text for the select component
Attribute:
info-text
Type:
string | undefined
invalidText
Since 2.6.0
Error text for the select component
Attribute:
invalid-text
Type:
string | undefined
label
Since 2.6.0
Label for the select component
Attribute:
label
Type:
string | undefined
mode
Selection mode
Attribute:
mode
Type:
"multiple" | "single"
Default:
'single'
name
Since 2.6.0
A string that represents the element's name attribute, containing a name that identifies the element when submitting the form.
Attribute:
name
Type:
string | undefined
readonly
If true the select will be in readonly mode
Attribute:
readonly
Type:
boolean
Default:
false
required
Since 2.6.0
A Boolean attribute indicating that an option with a non-empty string value must be selected
Attribute:
required
Type:
boolean
Default:
false
selectedIndices
Deprecated
since 2.0.0. Use the `value` property instead.
Indices of selected items. This corresponds to the value property of ix-select-items and therefor not necessarily the indices of the items in the list.
Attribute:
selected-indices
Type:
string | string[] | undefined
showTextAsTooltip
Since 2.6.0
Show helper, error, info, warning text as tooltip
Attribute:
show-text-as-tooltip
Type:
boolean | undefined
validText
Since 2.6.0
Valid text for the select component
Attribute:
valid-text
Type:
string | undefined
value
Since 2.0.0
Current selected value. This corresponds to the value property of ix-select-items
Attribute:
value
Type:
string | string[]
Default:
[]
warningText
Since 2.6.0
Warning text for the select component
Attribute:
warning-text
Type:
string | undefined

Events

Name
Description and specifications
addItem
Item added to selection
Detail:
string
inputChange
Since 2.0.0
Event dispatched whenever the text input changes.
Detail:
string
itemSelectionChange
Deprecated
since 2.0.0. Use `valueChange` instead.
Item selection changed
Detail:
string[]
ixBlur
Blur input
Detail:
void
valueChange
Since 2.0.0
Value changed
Detail:
string | string[]

Properties (ix-select-item)

Properties

Name
Description and specifications
label
Displayed name of the item
Attribute:
label
Type:
string | undefined
selected
Flag indicating whether the item is selected
Attribute:
selected
Type:
boolean
Default:
false
value
Deprecated
will be changed to type string with next major release (3.0.0)
The 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.
Attribute:
value
Type:
any

Events

Name
Description and specifications
itemClick
Item clicked
Detail:
string