API Docs for: 2.10.19
Show:

oreesh-selectbox Class

A selectbox which contains selectbox items and groups

// Can be created dynamically
var selectbox = new OreeshSelectbox();


<!-- Or via HTML -->
<!-- Basic example -->
<oreesh-selectbox>
    <oreesh-selectbox-item>Item 1</oreesh-selectbox-item>
    <oreesh-selectbox-item>Item 2</oreesh-selectbox-item>
</oreesh-selectbox>

Methods

initValueAndLabel

()

Initializes the selection box value and label.

Attributes

disabled

Disables the selectbox from user interaction.

label

String

The text that is visible on the selectbox, until one or more items are selected.

Default: Select...

multi-value

Array

Holds the indexs of the selectd options if the multiple attribute is being used.

multiple

Allows users to select multiple options from the drop down menu (by using checkboxes).

open

Reflects whether or not the menu is currently visible to the user. Can also be use to manually open and close the menu.

value

Holds the index of the currently selected value. If you are using the multiple attribute, then the values will be in the multi-value attribute.