Class: InputElementDate

InputElementDate

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

new InputElementDate()

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

isDate()

Test to see if date is supported in this browser
Source:

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: