calls an inner event
name | string | the event name, case-insensitive |
params | array | the array of the event parameters |
boolean | false, if some of the event handlers return false. Otherwise, true |
{
view:"form",
elements:[
{ view:"text", name:"fname" },
{
view:"button", value:"Add a field", click:function(){
var form = this.getFormView();
var fields = Object.keys(form.elements).length;
form.addView({
view:"text",
name:"field_" + webix.uid()
},fields);
form.callEvent("onAfterFieldAdded", [ ++fields ]);
}
}
]
}
Normally, events are called automatically and you don't need to use this method.