Skip to main content

beforeHide

fires before a control is hidden

beforeHide: (value: undefined, init: boolean) => boolean | void;

Parameters:

  • value: undefined - the current value of the control, null
  • init: boolean - true, if the event is triggered on the control initialization; otherwise, false

Returns:

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

Example

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