onLightboxButton
Description
Fires when the user clicks on a custom button in the lightbox
onLightboxButton: (css: string, node: HTMLElement, e: Event) => void;
Parameters
css- (required) string - the name of the CSS class applied to the buttonnode- (required) HTMLElement - an HTML element of the clicked buttone- (required) Event - a native 'click' event object
Example
gantt.attachEvent("onLightboxButton", function (css, node, e){
//any custom logic here
});
Details
The event fires only for custom buttons at the bottom of the lightbox and doesn't fire for the default buttons.