본문으로 건너뛰기

Template

일부 HTML 콘텐츠가 들어 있는 컨테이너.

template_editor

scheduler.locale.labels.section_template = 'Details';// 섹션의 이름을 설정합니다

scheduler.config.lightbox.sections = [
{ name:"text", height:50, map_to:"text", type:"textarea", focus:true},
{ name:"template", height: 40, type:"template", map_to:"my_template"},
{ name:"time", height:72, type:"time", map_to:"auto"}
];
scheduler.attachEvent("onEventCreated", function(id, e) {
const ev = scheduler.getEvent(id);
ev.my_template = "<b>Holder:</b>"+ ev.holder+"

<b>Room:</b>"+ ev.room;
});

초기화

템플릿 컨트롤을 라이트박스에 추가하려면 다음 단계를 따르세요:

  1. 라이트박스 구성에 섹션을 추가:
scheduler.config.lightbox.sections = [
{ name:"text", ... },
{ name:"template", height: 40, type:"template", map_to:"my_template"},
{ name:"time", ...}
];
  1. 섹션의 레이블을 설정:
scheduler.locale.labels.section_template = 'Details';
  1. 일부 이벤트의 도움으로 컨트롤의 내용을 설정합니다. 예: onBeforeLightbox 이벤트:
scheduler.attachEvent("onBeforeLightbox", function(id) {
const ev = scheduler.getEvent(id);
ev.my_template = "<b>Holder:</b>"+ ev.holder+"

<b>Room:</b>"+ ev.room;
return true;
});

속성

다음 속성은 주로 및 일반적으로 'template' 컨트롤에 대해 중요하게 설정됩니다(전체 목록은 여기를 참조하세요):

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.