Skip to content

Commit 593ea93

Browse files
committed
Updated readme.
1 parent 454b37a commit 593ea93

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

j-DatePicker/readme.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,8 @@ __Configuration__:
88

99
- `firstday` {Number} first day in the week
1010
- `today` {String} a label for `Set today` button
11-
- `close` {String} a label for close button
1211
- `days` {String} days e.g. `SU,MO,TU,WE,TH,FR,SA` (default).
1312
- `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`).
1813

1914
The component must be called manually or works with `j-Input` component automatically. The component is a singleton.
2015

@@ -38,7 +33,13 @@ opt.callback = function(newdate) {
3833
// opt.offsetY {Number} "y" offset
3934
// opt.close {Function} optional, this function can determine closing of DatePicker
4035

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);
4243
```
4344

4445
### Author

0 commit comments

Comments
 (0)