jsx3.gui.DatePickerAPI


ChangeFires after the user changes the value of this date picker.
DestroyFires after this date picker is removed from the DOM.
HideFires after the calendar is hidden.
InputFires after the user types text in the date field and before the change is committed.
MenuFires after the user right-clicks this date picker and before the bound context menu displays.
ShowFires after the calendar is revealed.

Changejsxchange

Fires after the user changes the value of this date picker. Canceling this event prevents the change from occurring.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.DatePicker} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
oldDATE {Date} - the old value.
newDATE {Date} - the new value.

Inputjsxinput

Fires after the user types text in the date field and before the change is committed. Canceling this event prevents committing the input.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.DatePicker} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
strINPUT {String} - the text entered by the user.

Return Fields

objDATE {Date} - specifies the parsed date, in which case the input text is not parsed by the date format.
strINPUT {String} - modifies the text entered by the user before it is parsed by the date format.

Showjsxshow

Fires after the calendar is revealed.

Context Variables

this {jsx3.gui.DatePicker} - the object that publishes this event.

Return Fields

objDATE {Date} - specifies the year and month to display upon opening the calendar.

Hidejsxhide

Fires after the calendar is hidden.

Context Variables

this {jsx3.gui.DatePicker} - the object that publishes this event.

Menujsxmenu

Fires after the user right-clicks this date picker and before the bound context menu displays. Canceling this event prevents the menu from displaying.
Cancelable: Evaluate to false to cancel event.

Context Variables

this {jsx3.gui.DatePicker} - the object that publishes this event.
objEVENT {jsx3.gui.Event} - the browser event that triggers this event.
objMENU {jsx3.gui.Menu} - the menu to display.

Return Fields

objMENU {jsx3.gui.Menu} - use this field to override the default menu with an instance of jsx3.gui.Menu.

Destroyjsxdestroy

Fires after this date picker is removed from the DOM.

Context Variables

this {jsx3.gui.DatePicker} - the object that publishes this event.
objPARENT {jsx3.app.Model} - the parent of this date picker before it is removed from the DOM.