0.2.3 • Published 2 years ago
@gtask/calendar v0.2.3
@gtask/calendar
A JS calendar module by Derek.
Vue 2 example
import { CalendarVue, calendar } from "@gtask/calendar";
calendar.buildSchedule({
"comments": [
{
"tasks": [
{"text": "Design >>calendar model --- 2022/02/01" },
]
},
{
"createTime": "2022/02/01",
"tasks": [
{"text": "Build component --------- 02/04" },
{"text": "Build @gtask/calendar --- 2月" }
]
}
]
});
new Vue({
render: h => h(CalendarVue)
}).$mount("#app");
Pure JS example
import { CalendarBuilder } from "@gtask/calendar";
let rawYearHtml = new CalendarBuilder().buildYearHtml();
console.log(rawYearHtml);
Full import
import {
CalendarBuilder, // Pure JS Calendar Html builder
CalendarVue, // Vue 2 calendar component
ToolbarVue, // Vue 2 toolbar component for calendar settings.
calendar, // Pure JS calendar instance holding ScheduleBuilder, CalendarBuilder
store // State:{year, rowsEachMonth, multiyears, zoom, ... }
} from "@gtask/calendar";