calendar.js | |
Calendar | |
ngCalendar | This class implements a generic calendar control. |
Properties | |
CurrentDate | ... |
WeekStartDay | ... |
HiliteWeekDays | ... |
DateFormat | ... |
ImgWeekDay | ... |
ImgDay | ... |
ImgNow | ... |
PrevMonBtn | ... |
NextMonBtn | ... |
PrevYearBtn | ... |
NextYearBtn | ... |
TodayBtn | ... |
TomorrowBtn | ... |
NextWeekBtn | ... |
FastButtons | ... |
Navigation | ... |
YearNavigation | ... |
FastNavigation | ... |
DisplayedDates | ... |
SelectedDates | ... |
SelectType | ... |
SelectFrom | ... |
SelectTo | ... |
BlockedDates | ... |
BlockedWeekDays | ... |
MinDate | ... |
MaxDate | ... |
Frame | ... |
Methods | |
FormatDate | Formats date to string. |
ParseDate | Parses date from string. |
NextMonth | Moves calendar page to next month. |
PrevMonth | Moves calendar page to previous month. |
NextYear | Moves calendar page to next year. |
PrevYear | Moves calendar page to previous year. |
ClearSelected | Clears selected dates. |
SelectDate | Adds/removes date to/from selection/ |
GetSelected | Gets selected dates as indexed array. |
SetSelected | Sets selected dates from array. |
IsDayEnabled | Determines if specified date is available for selection. |
BeginUpdate | Prevents the updating of the calendar until the EndUpdate method is called. |
EndUpdate | Performs the repaints deferred by a call to BeginUpdate. |
UpdateCalendar | Repaints the calendar page. |
Events | |
OnFormatDate | |
OnParseDate | |
OnDayClick | |
OnIsDayEnabled | |
OnSelectChanged | |
OnGetWeekDayImg | |
OnGetWeekDayText | |
OnGetWeekDayAlt | |
OnGetDayImg | |
OnGetDayText | |
OnGetDayAlt | |
OnMouseEnter | |
OnMouseLeave | |
ngEditDate | Standard edit date control (based on ngEdit). |
Properties | |
DateFormat | ... |
Methods | |
FormatDate | Formats date to string. |
ParseDate | Parses date from string. |
GetDate | Gets edited date. |
SetDate | Sets edited date. |
Events | |
OnFormatDate | |
OnParseDate | |
ngEditTime | Standard edit date control (based on ngEdit). |
Properties | |
TimeFormat | ... |
Methods | |
FormatTime | Formats date to string. |
ParseTime | Parses date from string. |
GetDate | Gets edited date. |
SetDate | Sets edited date. |
Events | |
OnFormatDate | |
OnParseDate |
This class implements a generic calendar control.
new ngCalendar ([string id])
id | parent element |
Abstract class ngControl.
Formats date to string.
string FormatDate (date d)
-
Format strings in ng_FormatDateTime.
Parses date from string.
date ParseDate (string s)
-
Format strings in ng_FormatDateTime.
Performs the repaints deferred by a call to BeginUpdate.
void EndUpdate ()
-
Standard edit date control (based on ngEdit).
Properties | |
DateFormat | ... |
Methods | |
FormatDate | Formats date to string. |
ParseDate | Parses date from string. |
GetDate | Gets edited date. |
SetDate | Sets edited date. |
Events | |
OnFormatDate | |
OnParseDate |
Standard edit date control (based on ngEdit).
Properties | |
TimeFormat | ... |
Methods | |
FormatTime | Formats date to string. |
ParseTime | Parses date from string. |
GetDate | Gets edited date. |
SetDate | Sets edited date. |
Events | |
OnFormatDate | |
OnParseDate |
...
this.CurrentDate
...
this.WeekStartDay
...
this.HiliteWeekDays
...
this.DateFormat
...
this.ImgWeekDay
...
this.ImgDay
...
this.ImgNow
...
this.PrevMonBtn
...
this.NextMonBtn
...
this.PrevYearBtn
...
this.NextYearBtn
...
this.TodayBtn
...
this.TomorrowBtn
...
this.NextWeekBtn
...
this.FastButtons
...
this.Navigation
...
this.YearNavigation
...
this.FastNavigation
...
this.DisplayedDates
...
this.SelectedDates
...
this.SelectType
...
this.SelectFrom
...
this.SelectTo
...
this.BlockedDates
...
this.BlockedWeekDays
...
this.MinDate
...
this.MaxDate
...
this.Frame
...
c.DateFormat
Formats date to string.
c.FormatDate = function( d )
Parses date from string.
c.ParseDate = function( d )
Gets edited date.
c.GetDate = function()
Sets edited date.
c.SetDate = function( d )
...
c.TimeFormat
Formats date to string.
c.FormatTime = function( d )
Parses date from string.
c.ParseTime = function( d )
Gets edited date.
c.GetDate = function()
Sets edited date.
c.SetDate = function( d )
Formats date and time to string.
function ng_FormatDateTime( date, format, def )