The following tables list the members exposed by CalendarDay.
Name | Description | |
---|---|---|
CalendarDay Constructor |
Name | Description | |
---|---|---|
css | Gets sets value of css class used by day's TD element. Notes: If day is disabled, then the "get" method does not include css for disabled state. The "set" method will override all default values, so, it is recommended to append new classes to existing. Example: day.set_css(day.get_css() + ' myCss'); Css class name | |
day | Gets value of day in month. Range of values: 1..31. Note: if day is a week number, then -1 is returned. Day of month | |
disabled | Gets sets disabled state of day as boolean.True: day is disabled | |
dow | Gets value of day of the week. Range of values: 0..6. Note: if day is a week number, then -1 is returned.Day of week | |
element | Gets reference to the TD html element used by day. | |
index | Gets value of index within grid of calendar. Range of values: 0..47. Day in calendar: 0..41, week number: 42..47.Index of day | |
month | Gets value of month. Range of values: 1..12.Month | |
text | Gets sets value of text used by day. It is used for text/innerHTML of day's TD element.Text in day | |
weekNumber | Gets value of week number. Range of values: 1..53. Note: if it is a day in calendar, then the -1 is returned.Week number | |
year | Gets value of year. Range of values: 2..9999.Year |
Name | Description | |
---|---|---|
isFocus | Checks if day has focus style. | |
isHover | Checks if day has hover style. | |
isOtherMonth | Checks if day belongs to the previous or next month. | |
isSelected | Checks if day has selected style. | |
isToday | Checks if day is today. | |
isWeekend | Checks if day is weekend. |