serialized된 문자열을 이용하여 달력 객체를 생성하고 반환합니다.
object IBCalendar.deserialize(id, el, optstring);
Name | Type | Required | Description |
---|---|---|---|
id | string |
필수 | 달력 객체의 id |
el | HTMLElement |
필수 | 달력을 생성할 부모 html 컨테이너 div객체 |
optstring | string |
필수 | serialized된(달력의 serialize() API를 통해 생성된) 문자열 |
object
<body>
<div id="calendar-container"/>
<div id="calendar2-container"/>
</body>
const id = "calendar1",
parentEl = document.getElementById("calendar-container"),
options = {
headerToolbar: {
left: "today prev next",
center: "title",
right: "dayGridMonth,timeGridWeek,timeGridDay,listMonth"
}
};
IBCalendar.create(
id,
parentEl,
options
);
const optstring = IBCalendar.get("calendar1").serialize();
IBCalendar.deserialize("calendar2", document.getElementById("calendar2-container"), optstring).render();
product | version | desc |
---|---|---|
core | 1.5.0.0 | 기능 추가 |