beforeShow
fires before a control is shown
beforeShow: (ids: (string | number) | (string | number)[]) => boolean | void;
Parameters:
ids: 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(ids) {
console.log("beforeShow", ids);
return true;
});
Change log:
added in v7.0