The b.Select
constructor creates a dropdown select.
Modifier | Action |
---|---|
b.Size(int) | For multiple selects, set size to the specified number of options |
b.Rounded | Make the select rounded |
b.Hovered | Apply the hovered style |
b.Focused | Apply the focused style |
b.Multiple | Make the select a multiple select |
b.Disabled | Disable the select |
b.Loading | Add a loading spinner to the right of the select |
b.Primary | Set color to primary |
b.Link | Set color to link |
b.Info | Set color to info |
b.Success | Set color to success |
b.Warning | Set color to warning |
b.Danger | Set color to danger |
b.Small | Set size to small |
b.Normal | Set size to normal |
b.Medium | Set size to medium |
b.Large | Set size to large |
Child | Action |
---|---|
b.OnSelect(...any) | Apply children to the <select> element |
b.OnDiv(...any) | Apply children to the <div class="select"> element |
b.IconElem | Apply icon to the <div class="select"> element |
Anything else | Apply child to the <select> element |
The b.Option
constructor creates an option element to be used as a child of b.Select
.
Modifier | Action |
---|---|
b.Selected | Mark the option as selected (for multiple selects) |