|
CalendarBox |
|
|
CalendarBox Element consists of a DateBox element and DHTML calendar that helps the user to pick a date visually. The calendar and the DateBox are compliant; The calendar receives some of its properties from the DateBox such as initial value, from and to dates. With this element, actually, the DateBox element becomes more powerful and flexible. The user can either type in a date into the input field of the DateBox or can open the Calendar dialog and pick up a date; The selected date is immediately formatted into the DateBox according to the defined pattern.
Show At Defines where to open the Calendar Dialog.
A number between 0 ("Sunday") to 6 ("Saturday") as the first day of the week. Show Time If the true is specified instead of the default value false, the time is shown on the calendar. If this property is set to true, then "Display Format" and "Submit Format" properties of the DateBox should be suitable to display and to submit the time information. Example: DateBox "Display Format": yyyy.mm.dd hh:nn Time 24 Defining this property is meaningful only if "Show the Time" property is set to true. Value true means the time is shown in 24 Hour format, false means am /pm format. Week Numbers If this property is set to true then Week numbers column is shown on left hand side of the calendar dialog under the "Wk" header. Show Other Months If set to true then days belonging to months overlapping with the currently displayed month will also be displayed in the calendar (but in a faded-out color) Single Click The default value true means when a day is clicked on the calendar, the selected date is transferred to the DateBox and the dialog is closed right a way. If it is set to false the in order to select a date and close the dialog the same day must be clicked twice. StatusBar Date Format StatusBar is the panel at the bottom of the dialog and it displays hints and formatted date information as the cursor moves over the dialog. This property can be used to format the date that is displayed on the status bar.
Special Characters:
Event Handlers On Date Select On Date Select Handler is called when a date is selected on the calendar and Calendar object is passed to it as the only parameter. If the function returns false then the date selection is canceled. Example: Event Handlers | On Date Select : checkDate
Date Status Date Status Handler is called for each day of the month that appears of the current view and a Date object is passed to it as the parameter. The handler can determine the status of the given date by returning true, false or a CSS style name. Example: Event Handlers | Date Status : setDateStatus
|