Gantt - attachEvent事件监听 - 无参数事件

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事件监听icon-default.png?t=LBL2https://mp.csdn.net/mp_blog/creation/editor/121919688

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值