单击日历时如何在调度程序视图中获取资源
How to get resource in scheduler view when clicking on calendar
我正在与 Vaadin 12 一起玩全日历调度程序视图。到目前为止,还不错,一切正常。但是,当我尝试为资源添加事件时,我无法在我的时间段选择的侦听器中获取相应的资源。有人知道怎么做吗?在 java API...
的文档中未找到需要的信息
感谢任何提示!
我更新了插件,您现在可以使用专门的事件类型(需要插件版本 FC 1.8.0 / scheduler 1.3.0)。
新事件是调度程序添加的一部分并提供资源信息:
- TimeslotClickedSchedulerEvent
- TimeslotsSelectedSchedulerEvent
时隙选择事件监听器使用示例
FullCalendarScheduler calendar = ...
// ...
calendar.addTimeslotsSelectedListener((TimeslotsSelectedSchedulerEvent event) -> {
Optional<Resource> resource = event.getResource();
// ... do something with the resource
});
我正在与 Vaadin 12 一起玩全日历调度程序视图。到目前为止,还不错,一切正常。但是,当我尝试为资源添加事件时,我无法在我的时间段选择的侦听器中获取相应的资源。有人知道怎么做吗?在 java API...
的文档中未找到需要的信息感谢任何提示!
我更新了插件,您现在可以使用专门的事件类型(需要插件版本 FC 1.8.0 / scheduler 1.3.0)。
新事件是调度程序添加的一部分并提供资源信息:
- TimeslotClickedSchedulerEvent
- TimeslotsSelectedSchedulerEvent
时隙选择事件监听器使用示例
FullCalendarScheduler calendar = ...
// ...
calendar.addTimeslotsSelectedListener((TimeslotsSelectedSchedulerEvent event) -> {
Optional<Resource> resource = event.getResource();
// ... do something with the resource
});