buttonClick

fires after a click on a button in a form

void buttonClick(string id,Event e){ ... };

Deprecated

Instead of it, you can use the click event:

form.events.on("Click", function(name, events) {
    console.log("Click", name, events); 
});

Parameters

idstringthe ID of a clicked button
eEventa native event object

Example

form.events.on("ButtonClick", function(id,e){
    console.log(id);
});

Related samples

Back to top