Skip to main content

beforeHide

fires before a Button control is hidden

beforeHide: (text: string, init: boolean) => boolean | void;

Parameters:

  • text: string - the current text label of the control
  • init: boolean - true, if the event is triggered on the button control initialization; otherwise, false

Returns:

Return false to prevent a control from being hidden; otherwise - true.

Example

form.getItem("button").events.on("BeforeHide", function(text, init) {    console.log("BeforeHide", text, init);    return true;});

Change log:

added in v7.0