Extension for Tree that adds the concept of open/closed state for nodes.
_defCloseFne
Defined in
tree/js/extensions/tree-openable.js:127
Default handler for the close event.
_defOpenFne
Defined in
tree/js/extensions/tree-openable.js:138
Default handler for the open event.
closeNodenode
[options]
Defined in
tree/js/extensions/tree-openable.js:49
Closes the specified node if it isn't already closed.
node
Tree.Node
Node to close.
[options]
Object
optional
Options.
[silent=false]
Boolean
optional
If true, the close event
will be suppressed.
[src]
String
optional
Source of the change, to be passed along to the event facade of the resulting event. This can be used to distinguish between changes triggered by a user and changes triggered programmatically, for example.
openNodenode
[options]
Defined in
tree/js/extensions/tree-openable.js:77
Opens the specified node if it isn't already open.
node
Tree.Node
Node to open.
[options]
Object
optional
Options.
[silent=false]
Boolean
optional
If true, the open event
will be suppressed.
[src]
String
optional
Source of the change, to be passed along to the event facade of the resulting event. This can be used to distinguish between changes triggered by a user and changes triggered programmatically, for example.
toggleOpenNodenode
[options]
Defined in
tree/js/extensions/tree-openable.js:105
Toggles the open/closed state of the specified node, closing it if it's currently open or opening it if it's currently closed.