beforeShow
fires before a control or its toggle is shown
beforeShow: (value: {[id: string]: boolean | string | number}, id?: string) => boolean | void;
Parameters:
value: object
- the current value of the control. The object contains a set of key:value pairs where the key is the id of a toggle and the value is the value/state of the toggle.id?: string
- optional, the ID of a toggle of the control
Example
form.getItem("ToggleGroup").events.on("beforeShow", function(value, id) {
console.log("beforeShow", value, id);
return true;
});