fires before a control or its checkbox is shown
beforeShow: (value: {[id: string]: boolean | string}, 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 checkbox and the value is the value/state of the checkbox.id?: string
- optional, the ID of a checkbox of the controlReturn false
to prevent a control or its checkbox from being shown; otherwise, true
.
Example
form.getItem("CheckboxGroup").events.on("beforeShow", function(value, id) {
console.log("beforeShow", value, id);
return true;
});
Related sample: Form. Hide/Show control
Change log:The id parameter was added in v8.0
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4