callEvent
Description
调用内部事件
callEvent: (name: string, params?: any[]) => boolean
Parameters
name- (required) string - 事件的名称,忽略大小写params- (optional) array - 包含事件相关数据的数组
Returns
result- (boolean) - false,如果某些事件处理程序返回 false,否则返回 true
Example
gantt.attachEvent("CustomEvent", function(param1, param2){
return true;
});
var res = gantt.callEvent("CustomEvent", [param1, param2]);
Details
通常情况下,事件会被自动调用,您不需要使用此方法。
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.