beforeShow
fires before a Button control is shown
beforeShow: (text: string) => boolean | void;
Parameters:
text: string
- the current text label of the control
Returns:
Return false
to prevent a control from being shown; otherwise - true
.
Example
form.getItem("button").events.on("beforeShow", function(text) {
console.log("beforeShow", text);
return true;
});
Change log:
added in v7.0