focus
fires when a control of Form has received focus
focus: (name: string, value: any, id?: string) => void;
Parameters:
name: string
- the name or id of the control of Formvalue: any
- the current value of the controlid?: string
- optional, the id of the element of the control of Form (for RadioGroup, CheckboxGroup)
Example
form.events.on("focus", function(name, value, id) {
console.log(name, value);
});
Related sample: Form. Events
Change log:
added in v7.2