beforeShow
fires before a control is shown
beforeShow: () => boolean | void;
Returns:
Return false
to prevent a control from being shown; otherwise, true
.
Example
form.getItem("spacer").events.on("beforeShow", function() {
console.log("beforeShow");
return true;
});
Change log:
- The value parameter was removed in v8.0