Class InputElementTextbox
Extends
InputElementWithLabel.
A textbox object, derived from labeled object
Defined in: inputElement.js.
Constructor Attributes | Constructor Name and Description |
---|---|
InputElementTextbox(tag)
|
Method Attributes | Method Name and Description |
---|---|
getValue()
Retrieves the text currently displayed in the textbox.
|
|
setSize(width)
Sets the size of the textbox.
|
|
setTooltip(text)
Sets the text to be displayed when a user hovers the mouse over the textbox.
|
|
setValue(text)
Sets the text to be displayed in the textbox.
|
- Methods borrowed from class InputElementWithLabel:
- appendTo, setLabel, setTextAlign
- Methods borrowed from class InputElement:
- disable, enable, onChange, onClick
Method Detail
{string}
getValue()
Retrieves the text currently displayed in the textbox.
- Returns:
- {string} The display text
setSize(width)
Sets the size of the textbox.
- Parameters:
- {number} width
- The desired width of the textbox
setTooltip(text)
Sets the text to be displayed when a user hovers the mouse over the textbox.
- Parameters:
- {string} text
- The display text
setValue(text)
Sets the text to be displayed in the textbox.
- Parameters:
- {string} text
- The display text