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