Skip to main content

beforeHide

fires before a control is hidden

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

Parameters:

  • value: string | Date - the current value of the control
  • init: boolean - true, if the event is triggered on the datepicker control initialization; otherwise, false

Returns:

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

Example

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

Change log:

added in v7.0