onLightboxButton

fires when the user clicks on a custom button in the lightbox

void onLightboxButton(string css,HTMLElement node,Event e);
cssstringthe name of the CSS class applied to the button
nodeHTMLElementan HTML element of the clicked button
eEventa 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.

Back to top