Select (Listbox)
Basic select
BSelect is a nice replacement for the standard select tag. Offering better styling opportunities while retaining all accessability features.
Selected value:
Durward Reynolds
Object selection
It's also possible to select whole objects by setting the value prop to an object. By default BSelect expects the object to contain a label property to display as the selected value. This can also be configured by setting the display prop to another key or function (as long as it returns a string)
Selected value:
{
"id": 1,
"label": "Durward Reynolds",
"value": "#001"
}Multiple selection
BSelect also does multiple selections by adding the multiple prop and supplying an array as the model
Selected value:
[
{
"id": 1,
"label": "Durward Reynolds",
"value": "#001"
},
{
"id": 2,
"label": "Kenton Towne",
"value": "#002"
}
]