redefines the default click behavior for buttons of the Gantt chart
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
};
The behavior of the button will be redefined for both the lightbox and quick info popup.
The $click object of the default Gantt chart is:
{
buttons: {
delete: function (id){...},
edit: function (id){...},
}
}
Back to top