如何在DHTMLX甘特图中过滤多个部门

问题描述 投票:0回答:1

我正在使用以下甘特图版本dhtmlxGantt v.4.1.19,许可版本。

问题:需要从甘特图和表格中过滤多个部门。

当前,我一次只能过滤一个部门,但我需要使用下拉菜单中的复选框过滤多个部门。

部门过滤器应如下图所示enter image description here

javascript css angular dhtmlx
1个回答
0
投票

根据您在onBeforeTaskDisplay事件处理程序中返回的值来显示或隐藏任务(true显示,false隐藏):https://docs.dhtmlx.com/gantt/api__gantt_onbeforetaskdisplay_event.html

因此,您需要添加自定义逻辑来确定是否应显示任务。这是一个如何实现的示例:

https://snippet.dhtmlx.com/e79b73263

© www.soinside.com 2019 - 2024. All rights reserved.