Перейти к основному содержимому

onLightboxButton

Description

Срабатывает, когда пользователь нажимает на настраиваемую кнопку в lightbox

onLightboxButton: (css: string, node: HTMLElement, e: Event) => void;

Parameters

  • css - (required) string - имя CSS класса, применяемого к кнопке
  • node - (required) HTMLElement - HTML-элемент нажатой кнопки
  • e - (required) Event - объект нативного события 'click'

Example

gantt.attachEvent("onLightboxButton", function (css, node, e){
// любая ваша логика здесь
});

Details

Событие срабатывает только для настраиваемых кнопок в нижней части lightbox и не срабатывает для кнопок по умолчанию.

Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.