Class: InputElementSearch

InputElementSearch

An HTML5 Search object, derived from the textbox object. In some browsers, treated as text

new InputElementSearch()

Source:

Extends

Methods

appendTo(parent)

Appends the derived object and any label to a DOM node
Parameters:
Name Type Description
parent Object The DOM element to which this is added
Inherited From:
Source:

disable()

Disables the object
Inherited From:
Source:

enable()

Enables the object
Inherited From:
Source:

getValue() → {string}

Retrieves the text currently displayed in the textbox.
Inherited From:
Source:
Returns:
The display text
Type
string

onChange(listener)

Attaches an onchange handler to the object
Parameters:
Name Type Description
listener function The event listener to add
Inherited From:
Source:

onClick(listener)

Attaches an onclick handler to the object
Parameters:
Name Type Description
listener function The event listener to add
Inherited From:
Source:

setLabel(text)

Sets the text for the associated label.
Parameters:
Name Type Description
text string The label for the including object.
Inherited From:
Source:

setSize(width)

Sets the size of the textbox.
Parameters:
Name Type Description
width number The desired width of the textbox
Inherited From:
Source:

setTextAlign(text)

Sets the text alignment for the associated label. Default is left.
Parameters:
Name Type Description
text string The desired alignment, either 'left' or 'right'
Inherited From:
Source:

setTooltip(text)

Sets the text to be displayed when a user hovers the mouse over the textbox.
Parameters:
Name Type Description
text string The display text
Inherited From:
Source:

setValue(text)

Sets the text to be displayed in the textbox.
Parameters:
Name Type Description
text string The display text
Inherited From:
Source: