FullCalendar:如何查找扩展的资源
我似乎无法在 React FullCalendar 中找到一种方法来获取所有扩展的资源。您可以使用calendarAPI将资源设置为展开或不展开:
calendarApi.currentDataManager.dispatch({
type: "SET_RESOURCE_ENTITY_EXPANDED",
id: resource.id,
isExpanded: expanded,
});
但是我们如何获取资源的展开状态呢?
I can't seem to find a way in React FullCalendar to get all resources that are expanded. You can set a resource to be expanded or not expanded using calendarAPI:
calendarApi.currentDataManager.dispatch({
type: "SET_RESOURCE_ENTITY_EXPANDED",
id: resource.id,
isExpanded: expanded,
});
but how can we get the resources' expanded states?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
你走在正确的轨道上。如果您想展开/折叠所有资源,您可以迭代资源列表,为每个资源调度展开事件(见下文)。
You are on the right track. If you'd like to expand/collapse all resources, you can iterate through the resource list, dispatching the expand event for each (see below).