跳转到主要内容

getRenderedEvent

Description

返回当前显示事件的 HTML 元素

getRenderedEvent: (id: string) => HTMLElement

Parameters

  • id - (required) string - 事件的 id

Returns

  • event - (HTMLElement) - 事件的 HTML 元素 - 如果该事件在调度器中可见。
    'null' - 如果调用该方法时事件在调度器中不可见。

Example

var eventId = scheduler.addEvent({
start_date: "16-05-2013 09:00",
end_date: "16-05-2013 12:00",
text: "Meeting"
});
var eventObj = scheduler.getRenderedEvent(eventId);
//-> <div event_id="123649234723" ...>09:00 Meeting</div>

Details

注释

版本 3.5 及以上可用

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.