# Select field
# Demo
<select-field :items="[
{ id: 1, name: 'Item A' },
{ id: 2, name: 'Item B' },
{ id: 3, name: 'Parent item',
children: [
{ id: 4, name: 'Item C' }
]
}
]"
value="1"
:empty-option="true"
/>
# Props
id | Type
Description
The id attribute of the select field
|
name | Type
Description
The name attribute of the select field
|
empty-option | Type Default
Description
Prepend an empty option to the select field? |
items | Type Default |
id-property | Type Default |
value-property | Type Default |
value | Type
Description
Initial value |
# Events
selected | Parameters Description Emitted when an item gets selected |
← Search field Tabs →