beforeShow
fires before a control is shown
beforeShow: (value: Id | Id[]) => boolean | void;
Parameters:
value: string | number | (string | number)[]
- the ID(s) of the options(s) that are currently selected in the control
Returns:
Return false
to prevent a control from being shown; otherwise, true
.
Example
form.getItem("combo").events.on("beforeShow", function(value) {
console.log("beforeShow", value);
return true;
});
Change log:
added in v7.0