Disables sidebar node or nodes with
id.
disable(id1, [id2], ...)
id |
string, id of the sidebar node |
Returns array of effected nodes.
Description
The node(s) must exists in the
.nodes array of the sidebar or its nested nodes. The node is
identified by the
.id property. The method will set
.disabled property of the node to true.
It returns the number of disabled nodes that were enabled before.
If you have defined object in the following way:
You can: