View Switcher
Basic usage
Bind a variable to v-model.
AlexanderBohdan
Disable all items
AlexanderBohdan
Disabling special items
AlexanderBohdanMarianaMykhailoOrestRostislavSashaSerhiiVitaliy
optionsDisable - [{ id: 8, name: 'Serhii' }, { id: 9, name: 'Vitaliy', disabled: true }]
Event change
AlexanderBohdanMarianaMykhailoOrestRostislavSashaSerhiiVitaliy
View Switcher Attributes
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
model-value / v-model | binding value | string | number | — | |
disabled | whether the component is disabled | boolean | — | false |
options | The list of options | String[]/Number[]/Object[] | - | [] |
config | The object that specifies from where to take label,icon,value,key. | { labelKey: string, valueKey: string, iconKey: string, keyKey: string } | - | {} |
View Switcher Events
Method | Description | Parameters |
---|---|---|
change | returning option object item |