onAfterBatchUpdate - 在调用batchUpdate方法后触发(批量更新后)
void onAfterBatchUpdate (){ ... };
gantt.attachEvent("onAfterBatchUpdate", function() {
// do something
});
onAfterLightbox - 在用户关闭灯箱后触发(编辑表单)
void onAfterLightbox (){ ... };
gantt.attachEvent("onAfterLightbox", function () {
// do something
});
onBeforeBatchUpdate - 在调用batchUpdate方法之前触发(批量更新前)
void onBeforeBatchUpdate (){ ... };
gantt.attachEvent("onBeforeBatchUpdate", function () {
// do something
});
onBeforeDataRender - 在页面上呈现数据之前触发
void onBeforeDataRender (){ ... };
gantt.attachEvent("onBeforeDataRender", function () {
// do something
});
onBeforeGanttReady - 在 dhtmlxGantt 初始化开始之前触发
void onBeforeGanttReady (){ ... };
gantt.attachEvent("onBeforeGanttReady", function () {
// do something
});
onBeforeGanttRender - 在页面上呈现甘特图之前触发
void onBeforeGanttRender (){ ... };
gantt.attachEvent("onBeforeGanttRender", function () {
// do something
});
onBeforeParse - 在开始解析数据之前触发
void onBeforeParse (){ ... };
gantt.attachEvent("onBeforeParse", function () {
// do something
});
onClear - 从甘特图中删除所有任务后触发
void onClear (){ ... };
gantt.attachEvent("onClear", function () {
// do something
});
onCollapse - 当甘特图从全屏模式返回正常模式时触发
void onCollapse (){ ... };
gantt.attachEvent("onCollapse", function () {
// do something
});
onDataRender - 在页面上呈现数据后触发
void onDataRender (){ ... };
gantt.attachEvent("onDataRender", function () {
// do something
});
onDestroy - 在析构函数方法清除甘特图后调用
void onDestroy (){ ... };
gantt.attachEvent("onDestroy", function () {
// do something
});
onExpand - 当甘特图扩展到全屏时触发
void onExpand (){ ... };
gantt.attachEvent("onExpand", function () {
// do something
});
onGanttLayoutReady - 在甘特布局准备好之后但在呈现之前触发
void onGanttLayoutReady (){ ... };
gantt.attachEvent("onGanttLayoutReady", function () {
// do something
});
onGanttReady - 在 dhtmlxGantt 初始化完成但甘特图尚未在页面上呈现后触发
void onGanttReady (){ ... };
gantt.attachEvent("onGanttReady", function () {
// do something
});
onGanttRender - 在页面上呈现甘特图后触发
void onGanttRender (){ ... };
gantt.attachEvent("onGanttRender", function () {
// do something
});
onLoadEnd - 从数据源加载数据完成后触发
void onLoadEnd (){ ... };
gantt.attachEvent("onLoadEnd", function () {
// do something
});
onLoadStart - 在开始从数据源加载数据之前立即触发
void onLoadStart (){ ... };
gantt.attachEvent("onLoadStart", function () {
// do something
});
onOptionsLoad - 从服务器加载一组选项后触发,但尚未解析
void onOptionsLoad (){ ... };
gantt.attachEvent("onOptionsLoad", function () {
// do something
});
onParse - 在解析数据之后触发(可用于 API)但在甘特图中呈现之前
void onParse (){ ... };
gantt.attachEvent("onParse", function () {
// do something
});
onScaleAdjusted - 当重新渲染比例以完全显示所有任务时触发(按比例调整)
void onScaleAdjusted (){ ... };
gantt.attachEvent("onScaleAdjusted", function () {
// do something
});
onTemplatesReady - 当 dhtmlxGantt 模板初始化时触发(模板就绪)
void onTemplatesReady (){ ... };
gantt.attachEvent("onTemplatesReady", function () {
// do something
});
Gantt - attachEvent事件监听https://mp.csdn.net/mp_blog/creation/editor/121919688