Form manager's mixin for controlling show/hide state of controlled elements (defined by dojoAttachPoint attributes).
This mixin provides unified show/hide functionality for controlled elements (indicated by dojoAttachPoint attribute). Essentially it provides a way to change "style.display" parameter of controlled nodes. It should be used together with dojox.form.manager.Mixin.
See the dojox/form/manager/_DisplayMixin reference documentation for more information.
Gather display state of all attached elements and return as a dictionary.
Parameter | Type | Description |
---|---|---|
names | Object |
Optional If it is an array, it is a list of names to be processed. If it is an object, dictionary keys are names to be processed. If it is omitted, all known attach point nodes are to be processed. |
Hide attached nodes according to the supplied state object.
Parameter | Type | Description |
---|---|---|
state | Object |
Optional Optional. If a name-value dictionary, the value is true to show and false to hide. If an array, all names in the array will be hidden. If omitted, all form elements will be hidden. |
Show attached nodes according to the supplied state object.
Parameter | Type | Description |
---|---|---|
state | Object |
Optional Optional. If a name-value dictionary, the value is true to show and false to hide. If an array, all names in the array will be set to defaultState. If omitted, all form elements will be set to defaultState. |
defaultState | Boolean |
Optional The default state (true, if omitted). |
Show attached nodes according to the supplied state object.