triggerEvent

creates and triggers native DOM event

void triggerEvent(HTMLElement node,string type,string name,object details);
node
HTMLElementHTML element for which event is created type
stringevent "family" name
stringevent name detailsobjectcontainer for transferring user data

Example

var node = document.getElementById("mydiv");
webix.html.triggerEvent(node, "MouseEvent", "click", { some: "field" });

Details

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").

See also
  • API
  • Back to top
    Join Our Forum
    We've retired comments here. Visit our forum for faster technical support, connect with other developers, and share your feedback there.