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

$click

Описание

Переопределяет поведение клика по умолчанию для кнопок диаграммы Ганта

$click: any

Пример

gantt.config.quickinfo_icons=["icon_delete","icon_edit","advanced_details_button"]; 
gantt.locale.labels["advanced_details_button"] = "Advanced Info";
gantt.init("gantt_here");

gantt.$click.advanced_details_button=function(e, id, trg){
gantt.message("These are advanced details");
return false; //blocks the default behavior
};

Details

заметка

Поведение кнопки будет переопределено как для lightbox, так и для quick info popup.

Объект $click диаграммы Ганта по умолчанию:

{
buttons: {
delete: function (id){...},
edit: function (id){...},
}
}
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.