@cimo/schedule_calendar
v1.0.8
Published
Schedule calendar. Light, fast and secure.
Maintainers
Readme
Npm_schedule_calendar
Npm package, schedule calendar. Light, fast and secure. Writed with native Typescript code and no dependencies are used.
Pack
- npm run build
- Copy the file "/build/package_name-x.x.x.tgz" in the project root folder.
- In the "package.json" file insert: "@cimo/package_name": "file:package_name-x.x.x.tgz"
Publish
- npm run build
- npm login --auth-type=legacy
- npm publish --auth-type=legacy --access public
Installation
- Link for npm package -> https://www.npmjs.com/package/@cimo/schedule_calendar
Example
- Example.ts
...
import { Csc } from "@cimo/schedule_calendar/dist/src/Main";
...
const csc = new Csc(
{ yearBack: 10, yearForward: 10, isStartOnMonday: false, isHighlightToday: true },
".calendar"
);
csc.setLocale("ja-JP");
csc.setWeekdayList(["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"]);
csc.callbackCurrent = (year: number, month: number) => {
console.log("callbackCurrent", year, month);
};
csc.callbackCell = (elementDiv: HTMLDivElement, day: number) => {
console.log("callbackCell", elementDiv, day);
};
csc.view();
...
