On lightbox resource list - Fix enable/disable toggle is only for checkbox


#1

On lightbox resource list, I want to enable/disable toggle only when they click on the checkbox. Not on the each resource name. user said that it is very annoying.


#2

Hello Suba,
Unfortunately, there is no built-way to modify the resource filter.
To make it work as you want, you need to detach all click events and attach only the events you need. I don’t have a ready solution for that.

But I think the easiest way would be to add the following style rules to disable click events for the certain elements:

.gantt_resource_row{
  pointer-events: none;
}
.gantt_resource_toggle, .gantt_resource_cell_value{
  pointer-events: all;
}

The following snippet demonstrates how it works:
https://snippet.dhtmlx.com/5/f372685c3


#3

This works fine for me. Thank you! you saved my time