thyPopupCalendar

This is the PopupCalendar class.  It is wrapper to use JS Calendar.

Thanks for Mihai Bazon mihai_ba.nosp@m.zon@yaho.nosp@m.o.com for the great work!  For original JS Calendar, access http://dynarch.com/mishoo/

This widget is actually just a wrapper that puts JS Calendar into a thyPanel and makes it compatible with thyAPI.

CSS Classes

  • .thyPopupCalendar
  • .<object name>

Events

onchangeinvoked when the date is changed

See Also

Summary
This is the PopupCalendar class.
Initialization Method
Sets the default format for displaying
Returns the actual timestamp formatted with the actual format string
Return the timestamp of this field
Turns the EditBox into ReadOnly mode
Overloaded method that sets the field using timestamp and format.
Overloaded method that returns the timestamp
Event that handles clicks on dates.

initThyPopupCalendar

p.initThyPopupCalendar = function ()

Initialization Method

setFormat

p.setFormat = function (format)

Sets the default format for displaying

Parameters

formatThe format

getFormatted

p.getFormatted = function ()

Returns the actual timestamp formatted with the actual format string

getTimestamp

p.getTimestamp = function (miliseconds)

Return the timestamp of this field

Parameter

milisecondsReturns miliseconds timestamp instead of seconds

Private Methods

_setReadOnly

p._setReadOnly = function ()

Turns the EditBox into ReadOnly mode

_populateContents

p._populateContents = function (data)

Overloaded method that sets the field using timestamp and format.

_sweepOutContents

p._sweepOutContents = function ()

Overloaded method that returns the timestamp

_calendarOnSelect

p._calendarOnSelect = function ()

Event that handles clicks on dates.  This is the original onSelect event distributed with JSCalendar, but adapted to save timestamp information to this class.

p.initThyPopupCalendar = function ()
Initialization Method
p.setFormat = function (format)
Sets the default format for displaying
p.getFormatted = function ()
Returns the actual timestamp formatted with the actual format string
p.getTimestamp = function (miliseconds)
Return the timestamp of this field
p._setReadOnly = function ()
Turns the EditBox into ReadOnly mode
p._populateContents = function (data)
Overloaded method that sets the field using timestamp and format.
p._sweepOutContents = function ()
Overloaded method that returns the timestamp
p._calendarOnSelect = function ()
Event that handles clicks on dates.
This is the edit box to be used in ThyAPI.