Tree.Openable Class
yui3/src/tree/js/extensions/tree-openable.js:11
Parent Module: tree
Extension for Tree
that adds the concept of open/closed state for nodes.
Constructor
Tree.Openable
()
Methods
closeNode
-
node
-
[options]
Closes the specified node if it isn't already closed.
Parameters:
-
node
Tree.NodeNode to close.
-
[options]
Object optionalOptions.
-
[silent=false]
Boolean optionalIf
true
, theclose
event will be suppressed. -
[src]
String optionalSource 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.
-
openNode
-
node
-
[options]
Opens the specified node if it isn't already open.
Parameters:
-
node
Tree.NodeNode to open.
-
[options]
Object optionalOptions.
-
[silent=false]
Boolean optionalIf
true
, theopen
event will be suppressed. -
[src]
String optionalSource 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.
-
toggleOpenNode
-
node
-
[options]
Toggles the open/closed state of the specified node, closing it if it's currently open or opening it if it's currently closed.
Parameters:
-
node
Tree.NodeNode to toggle.
-
[options]
Object optionalOptions.
-
[silent=false]
Boolean optionalIf
true
, events will be suppressed. -
[src]
String optionalSource 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.
-