Home

# Class goog.ui.InputDatePicker

Input date picker widget.

extends goog.ui.Component

Instance Method Summary
| `createDom()` Creates an input element for use with the popup date picker.
| `decorateInternal(?Element element)` Actually decorates the element. Should be overridden by inheriting objects. This method can assume there are checks to ensure the component has not already been rendered have occurred and that enter document will be called afterwards. This method is considered protected.
| `disposeInternal()` Disposes of the component. Calls {@code exitDocument}, which is expected to remove event handlers and clean up the component. Propagates the call to the component's children, if any. Removes the component's DOM from the document unless it was decorated.
| `enterDocument()` Called when the DOM for the component is for sure in the document.
| `exitDocument()` Called when the DOM for the component is removed from the document or when the component no longer is managing the DOM.
| `getDate() ⇒ ?goog.date.Date` Returns the selected date, if any. Compares the dates from the date picker and the input field, causing them to be synced if different.
| `getDatePicker() ⇒ ?goog.ui.DatePicker` Returns the PopupDatePicker's internal DatePicker instance. This can be used to customize the date picker's styling.
| `getInputValue() ⇒ string` Returns the value of the input element. This can be overridden to support alternative types of input getting.
| `getInputValueAsDate_() ⇒ ?goog.date.Date` Gets the input element value and attempts to parse it as a date.
| `hidePopup()` See goog.ui.PopupDatePicker.hidePopup().
| `onDateChanged_(?goog.ui.DatePickerEvent e)` Event handler for date change events. Called when the date changes.
| `onPopup_(?goog.events.Event e)` Event handler for popup date picker popup events.
| `setDate(?goog.date.Date date)` Sets the selected date. See goog.ui.PopupDatePicker.setDate().
| `setInputValue(string value)` Sets the value of the input element. This can be overridden to support alternative types of input setting.
| `setPopupParentElement(?Element el)` Sets the element that the PopupDatePicker should be parented to. If not set, defaults to the body element of the page.
| `showForElement(?Element element)` See goog.ui.PopupDatePicker.showPopup().