$click
Description
重新定义 Gantt 图中按钮的默认点击行为
$click: any
Example
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("这些是高级详情");
return false; //阻止默认行为
};
Details
注释
按钮的行为将针对 lightbox 和 quick info 弹出框重新定义。
标准甘特图中的$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.