Options
name | type | description | default | |
---|---|---|---|---|
lang | string | A language to set to the Calendar. | en | |
theme | string | A theme to set to the Calendar. (light, dark). | light | |
format | string | The date format that you want to print to input element by value. | YYYY-MM-DD | |
modal | boolean | If you want display calendar as modal, You can use by setting modal option to true. | false | |
buttons | boolean | If you are using input type calendar, You can add button controller for confirm by user. | false | |
toggle | boolean | If you set true this option, You can use toggle on your Calendar. | false | |
reverse | boolean | If you toggle option turned on and this option also set true, Inital calendar dates start as inactive. | false | |
multiple | boolean | If you set true this option, You can use multiple picker on your Calendar. | false | |
disabledDates | array | You can disable dates by using a date array formatted like 'YYYY-MM-DD' strings. | [] | |
disabledWeekdays | array | You can disable by using a weekday number array (This is a sequential number start from 0 [sunday]). | [] | |
select | function | This callback will be called when you select a date on calendar (date click). | ||
apply | function | This callback will be called when you apply a date on calendar. (OK button click). |