Newspaper

Do you know the latest update of 2022?  Our roadmap is alive for future updates.

My Cart
1 Item
Remove Item

$59.00

Select

Bootstrap custom <select> using custom styles. Optionally specify options based on an array, array of objects, or an object.

Basic

Generate your select options by passing an array or object to the options props:

You can even define option groups with the options prop:

Selected:

Manually

Or manually provide your options and option groups:

Selected:

Feel free to mix the options prop with <b-form-select-option> and <b-form-select-option-group>. Manually placed options and option groups will appear below the options generated via the options prop. To place manual options and option groups above the options specified by the options prop, use the named slot first.

Selected: A

Changing the option field names

If you want to customize the field property names (for example using name field for display text) you can easily change them by setting the text-field, html-field, value-field, and disabled-field props to a string that contains the property name you would like to use:

Selected: A

Value in single mode

In non multiple mode, <b-form-select> returns the a single value of the currently selected option.

Selected:

Select sizing (displayed rows)

You can use the select-size prop to switch the custom select into a select list-box, rather than a dropdown. Set the select-size prop to a numerical value greater than 1 to control how many rows of options are visible.

Note when select-size is set to a value greater than 1, the Bootstrap v4 custom styling will not be applied, unless the multiple prop is also set.

Note that not all mobile browsers will show the select as a list-box.

Selected:

Value in multiple mode

In multiple mode, <b-form-select> always returns an array of option values. You must provide an array reference as your v-model when in multiple mode.

Selected: [ "b" ]

COPYRIGHT ©2021 Hypeople, All rights Reserved

Customise your YODA Preview in Real Time
THEME Dark & Light
LAYOUT DIRECTION LTR & RTL
CONTENT WIDTH FULL Width & Boxed
NAVIGATION STYLE Vertical & Horizontal