sa-calendar
v1.1.12
Published
## Install
Downloads
141
Readme
SaUI - Calendar
Install
npm install sa-calendar
Usage
HTML
<input id="test" type="date" role="calendar">
Javascript
import Calendar from "sa-calendar";
const target = document.querySelector('#test');
target.addEventListener('click', () => {
new Calendar({
trigger: target,
css : {
mainClass: ''
// other config
}
});
});
Options
trigger
: Elementcss
mainClass
: stringstartClass
: stringendClass
: stringselectedClass
: stringtodayClass
: stringdisabled
: stringprimaryClass
: stringdefaultClass
: stringerrorClass
: string