beforeHide
fires before a control is hidden
beforeHide: (value: object, init: boolean) => boolean | void;
Parameters:
value: object
- the current value of the controlinit: boolean
- true, if the event is triggered on the control initialization; otherwise, false
Returns:
Return false
to prevent a control from being hidden; otherwise, true
.
Example
form.getItem("avatar").events.on("beforeHide", value => {
console.log("beforeHide", value);
return true;
});