SelectInput

Overview

The Select Input creates a combo box where a user can input text similar to TextInput but can be "pulled down" to see a list of options as well. This class inherits TextInput classes functionality, see TextInput for more information.

 

Descendants

  1. None
 

See Also

  1. TextInput

Constructors

new SelectInput
Description

Creates a new SelectInput control.

Definition

new SelectInput()

Members

length
Description

Gets the amount of options currently on the select input.

Definition

number selectinput.length
selectedIndex
Description

Gets or sets the selected item from the options available.

Definition

number selectinput.selectedIndex

Methods

addItem(option)
Description

Adds an item to the select input as an option, this is added to the end of the options list.

Definition

selectinput.addItem(option)
Parameters
NameTypeDescription
option string The text title of the option the user may select.
addItemAtIndex(option, index)
Description

Adds an item to the select input as an option, the item is inserted at the index.

Definition

selectinput.addItemAtIndex(option, index)
Parameters
NameTypeDescription
option string The text title of the option the user may select.
index number The index (from 0 to length-1) of where to add the option.
item(index)
Description

Returns the text title for the item at the specified index.

Definition

selectinput.item(index)
Parameters
NameTypeDescription
index number The index used to get the items information.
Returns
TypeDescription
string
removeItem(option)
Description

Removes the option where the text title matches the passed in value.

Definition

selectinput.removeItem(option)
Parameters
NameTypeDescription
option string The text title of the option to be removed.
removeItemAtIndex(index)
Description

Removes the item at the specified index.

Definition

selectinput.removeItemAtIndex(index)
Parameters
NameTypeDescription
index number The index (from 0 to length-1) of the item to remove.