useGroupModel
Single select usage
useGroupModel
allows you to create v-model
like binding for a group of components.
Selected: Bifrost
Single select usage with persistance
useGroupModel
also has an optional parameter to quickly enable persistent selection using either local or session storage. Pass a storage object with the desired storage type ( windows.loacalStorage or windows.sessionStorage
), a unique key to hold the value and an optional initial value.
DANGER
Persistance currently does not work with multiple or object selection
Multiple select usage
Set the multi property to enable selecting multiple values from options.
Selected: Bifrost, HLS
Object selection
options can also be an object.
Monitor
Pipes
System
Profile
Selected: {"label":"Monitor","icon":"i-mdi:chart-line"}