creates and triggers native DOM event
node | HTMLElement | HTML element for which event is created |
type | string | event "family" |
name | string | event name |
details | object | container for transferring user data |
var node = document.getElementById("mydiv");
webix.html.triggerEvent(node, "MouseEvent", "click", { some: "field" });
Note that details parameter would work only if you are using modern browsers and the right type of event (f.e "MouseEvent" instead of "MouseEvents").