We have implemented cellClick mainly for the date resource cells in the timeline view to get the clicked cell date. Is it possible to disable cellClick in the resource column alone?
PFA video for your reference,
Support Forum
Hi,
You can just check with an if statement that if you're not clicking on the resource cell then log the date you've clicked. That way you'll only get the date when you click on the date cell.
Hope this helps.
Best regards,
Tasnim
How to ask for help? Please read our Support Policy
Hey prasath,
You can use the following snippet (please note that on the snippet the resource is mapped on name
field, which could be different on your project)
listeners: {
cellClick: ({ column }) => {
if(column.field !== 'name') {
console.log('click not resource column')
}
}
}
- Attachments
-
- Screen Recording 2024-08-12 at 09.32.54.mov
- (7.35 MiB) Downloaded 17 times
Best regards,
Márcio
How to ask for help? Please read our Support Policy