forked from geekzy/xycal
-
Notifications
You must be signed in to change notification settings - Fork 0
/
README.txt
41 lines (31 loc) · 1.52 KB
/
README.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
XYBASE Simple Calendar/Event Layout Component
jquery.xycal.js v1.0.3
Developer: Imam Kurniawan <[email protected]><[email protected]>
Copyright (c) 2012 XYBASE <http://www.xybase.com>
Methods:
- getSelected :
Get curently selected day
return day object of selected day
- setSelected(date) :
Set the selected date, all related callbacks will also be invoked
param date the Date object of the selected date
return the selected date as Date Object
- today :
Navigate to Today's date
Callbacks:
- onLoaded :
Callback when the xycal component is loaded, scope of this is the xycal instance
- onChangeDay(selected, evented)
Callback when the day is changed/selected, scope of this is the xycal instance
param selected the latest selected date as Date Object
param evented boolean value of the selected date has any event(s). true - has event(s); false - no event(s)
- onChangeMonth(selected)
Callback when the month is changed, scope of this is the xycal instance
param selected the latest selected date as Date Object
- onChangeYear(selected)
Callback when the year is changed, scope of this is the xycal instance
param selected the latest selected date as Date Object
Changes:
- [10/05/12] Fix event list referencing issue when using configuration, get it straight from selector
- [11/05/12] Add options for callback such as when xycal is loaded, date selected, month change & year change
Add public methods to get/set the selected date and navigate to today's date.