问题描述
iam使用fullcalendar-Scheduler 5.2。
如何显示或折叠资源组? 我知道 resourcesInitiallyExpanded 函数,但是我想扩展/折叠特定的resourceGroup。
我找到了一个例子: https://codepen.io/anon/pen/odNOWZ?editors=0010,但这是用于Fullcalendar的旧版本。
com.datastax.oss.driver.api.querybuilder.SchemaBuilder
我将使用 resourceGroupLabelDidMount 钩子给我这个参数:
当上述钩子以形式为function(arg)的函数指定时,arg是具有以下属性的对象:
groupValue
el -元素。仅在resourceGroupLabelDidMount,resourceGroupLabelWillUnmount,resourceGroupLaneDidMount和resourceGroupLaneWillUnmount中可用
但是在哪里可以调用click函数?
谢谢!
解决方法
好吧,我昨天算了一下(在尝试了一些错误之后)
这是我的方法:
resourceGroupLabelDidMount:function(info){
if(info.groupValue === 'Auditorium B'){
info.el.querySelector('.fc-datagrid-expander')
.click();
}