Create Calender library.
# install npm.
npm install --save @yama-dev/js-calendar-module
// import.
import CALENDAR_MODULE from '@yama-dev/js-calendar-module';
<script src="./js-calendar-module.js"></script>
<script>
let CM = new CALENDAR_MODULE({
monday_start : false,
day_of_week_list : ['Mon', 'Tue', 'Wed', 'Thu', 'Fri', 'Sat', 'Sun'],
auto_render : true,
on: {
Load: function(date){
console.log(date);
},
Change: function(date){
console.log(date);
}
}
});
</script>
Parameter | Type | Default | Description |
---|
none