Skip to main content

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 true 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