UISelect
This component renders a list of selectable items. Toggles, Buttons or Dropdown. Should be rewritten because kind of mess.
Since: 7.0.0 (3.2.0)
Name | Type | Default | Description |
---|---|---|---|
list | Required - List object containing info for rendering. See UISelect.list | ||
placeholder |
| For dropdown. To provied placeholder value | |
emptyOptionLabel |
| For dropdown. Used insted of placeholder if want to provied reset option to dropdown | |
size |
|
| Only available for dropdown Size of select. Variants: large|small |
direction |
|
| Only available for dropdown Direction of rendered options list. Variants: down|up |
type |
|
| Only available for dropdown Different types will be passed into this property. Variants default|secondary |
disabled |
|
| Only available for dropdown Disable state |
optionsListAlign |
|
| Only available for dropdown Options list postion agaist parent |
tabindex |
|
| Only available for dropdown - Tabindex |
isSelected |
| Required - Callback check if selected | |
onChangeList |
| Required - Callback when list changes |
Example
list
UISelect.list
This component renders a list of selectable items.
It supports 3 types of lists: drop-down list, toggle list and button list.
The list is defined as a property, that should contain:
Name | Type | Default | Description |
---|---|---|---|
label |
| Required - Only on top level list | |
type |
| Required - Type of output. toggle|button|dropdown | |
multivalue |
|
| Determines you should be able to select many options. Don't works with dropdown |
values |
| Required - List with values | |
values.title |
| Required - Title for value in list | |
values.list | Toggle option. Optional list to be display when choosen |