@@ -8,13 +8,8 @@ __Configuration__:
8
8
9
9
- ` firstday ` {Number} first day in the week
10
10
- ` today ` {String} a label for ` Set today ` button
11
- - ` close ` {String} a label for close button
12
11
- ` days ` {String} days e.g. ` SU,MO,TU,WE,TH,FR,SA ` (default).
13
12
- ` months ` {String} months e.g. ` January,February,... ` (default).
14
- - ` yearselect ` {Boolean} dropdown with years (default ` true ` ).
15
- - ` monthselect ` {Boolean} dropdown with months (default ` true ` ).
16
- - ` yearfrom ` {String} sets minimum year limit in dropdown e.g. ` -5 years ` ` current ` (default ` -100 years ` ).
17
- - ` yearto ` {String} sets maximum year limit in dropdown ` +5 years ` ` current ` (default ` current ` ).
18
13
19
14
The component must be called manually or works with ` j-Input ` component automatically. The component is a singleton.
20
15
@@ -38,7 +33,13 @@ opt.callback = function(newdate) {
38
33
// opt.offsetY {Number} "y" offset
39
34
// opt.close {Function} optional, this function can determine closing of DatePicker
40
35
41
- SETTER (' datepicker' , ' show' , opt);
36
+ // NEW and OPTIONAL
37
+ opt .badges = function (date , append ) {
38
+ // Appends small and red badges to the current view/month
39
+ append ([date1, date2, date3]);
40
+ };
41
+
42
+ SETTER (' datepicker/show' , opt);
42
43
```
43
44
44
45
### Author
0 commit comments