Class: DateComponent

DateComponent

new tart.ui.input.DateComponent()

Date component.

Extends

Members

mappingsstring

DateComponent domMappings.

Properties:
Name Type Default Description
INPUT string .dateInput

Methods

inherited protectedbindModelEvents()

Listens to the model's events. This method should be overriden by the implementer, and should keep the model's event listeners.

inherited getChild(selector){Object}

Returns children of component's element

Name Type Description
selector string

Expression which is searching in component element. This is kind of $ for selecting dom element.

Returns:
Type Description
Object

getDateTime(){Date}

Returns the date in Date format.

Returns:
Type Description
Date date in Date format.

inherited getElement(){Element}

Returns the dom element attached with the Component instance.

Returns:
Type Description
Element

Returns the id of this component.

Returns:
Type Description
string The id of this component.

inherited getPlaceholder(){string}

Returns base template of component

Returns:
Type Description
string

Cleans the text area if no text entrance was made.

Dispatches an event after focusOut action which carries the date in milliseconds.

Reformats the text entered, in order to display it in a visual style adjusted with predefined style.

Name Type Description
e goog.events.BrowserEvent

keyPress Event.

inherited render(opt_base, opt_index)

This method should be called after the DlgComponent is inserted into the document. Any work (rendering child components, updating DOM, etc.) should be done in this method.

Name Type Description
opt_base Element optional

Optional element to render this item into.

opt_index number optional

Place to render element in base element's children list.

Resets the text area, date string and formatted date string parameters.

templates_base(){string}

Constructs the base template

Returns:
Type Description
string base template.