DHTMLX Docs & Samples Explorer

onButtonClick

Event occurs when user clicks button

Parameters of event

  • name - the value of the name property of the control
myform.attachEvent("onButtonClick", function(name){
     // any custom logic here
  });

Example of init

...
{type: "button", name: "btn2", value: "Submit"}
...