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