diff -r 322d0feea350 -r 89ef5ed3c48b src/cm/media/js/lib/yui/yui_3.10.3/api/classes/Tree.Openable.html --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/src/cm/media/js/lib/yui/yui_3.10.3/api/classes/Tree.Openable.html Tue Jul 16 14:29:46 2013 +0200 @@ -0,0 +1,2487 @@ + + + + + Tree.Openable - YUI 3 + + + + + + + + +
+
+
+ +

+ +
+
+ API Docs for: 3.10.3 +
+
+
+ +
+ +
+
+
+ Show: + + + + + + + +
+ + +
+
+
+

Tree.Openable Class

+
+ + + + + + + + + + + Module: tree-openable
+ Parent Module: tree + + + + +
+ + + +
+

Extension for Tree that adds the concept of open/closed state for nodes.

+
+ + +
+

Constructor

+
+

Tree.Openable

+ + + () + + + + + + + + + + + + + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:11 + +

+ + + + + +
+ +
+ +
+ + + + + + +
+ +
+ + +
+ + +
+
+

Item Index

+ + +
+

Methods

+ + +
+ + + + + + + +
+

Events

+ + +
+ +
+ + +
+

Methods

+ + +
+

_defCloseFn

+ + +
+ (
    + +
  • + + e + +
  • + +
) +
+ + + + + + + + protected + + + + + + + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:125 + +

+ + + + + +
+ +
+

Default handler for the close event.

+
+ + +
+

Parameters:

+ + +
+ + + + + +
+ + +
+

_defOpenFn

+ + +
+ (
    + +
  • + + e + +
  • + +
) +
+ + + + + + + + protected + + + + + + + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:136 + +

+ + + + + +
+ +
+

Default handler for the open event.

+
+ + +
+

Parameters:

+ + +
+ + + + + +
+ + +
+

closeNode

+ + +
+ (
    + +
  • + + [options] + +
  • + +
) +
+ + + + + + + + + + + + + + chainable + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:49 + +

+ + + + + +
+ +
+

Closes the specified node if it isn't already closed.

+
+ + +
+

Parameters:

+ +
    + +
  • + + [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.

      +
      + + +
    • + +
    + +
  • + +
+
+ + + + + +
+ + +
+

openNode

+ + +
+ (
    + +
  • + + [options] + +
  • + +
) +
+ + + + + + + + + + + + + + chainable + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:76 + +

+ + + + + +
+ +
+

Opens the specified node if it isn't already open.

+
+ + +
+

Parameters:

+ +
    + +
  • + + [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.

      +
      + + +
    • + +
    + +
  • + +
+
+ + + + + +
+ + +
+

toggleOpenNode

+ + +
+ (
    + +
  • + + node + +
  • + +
  • + + [options] + +
  • + +
) +
+ + + + + + + + + + + + + + chainable + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:103 + +

+ + + + + +
+ +
+

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.Node + + + + +
    +

    Node to toggle.

    +
    + + +
  • + +
  • + + [options] + Object + optional + + + + +
    +

    Options.

    +
    + + +
      + +
    • + + [silent=false] + Boolean + optional + + +
      +

      If true, events 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.

      +
      + + +
    • + +
    + +
  • + +
+
+ + + + + +
+ + +
+ + + + + + + +
+

Events

+ + +
+

close

+ + + + + + + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:19 + +

+ + + + +
+ +
+

Fired when a node is closed.

+
+ + +
+

Event Payload:

+ +
    + +
  • + + node + Tree.Node + + + + +
    +

    Node being closed.

    +
    + + +
  • + +
  • + + src + String + + + + +
    +

    Source of the event.

    +
    + + +
  • + +
+
+ + + + +
+ + +
+

open

+ + + + + + + + + + +
+ + + +

+ + Defined in + + + + + tree/js/extensions/tree-openable.js:29 + +

+ + + + +
+ +
+

Fired when a node is opened.

+
+ + +
+

Event Payload:

+ +
    + +
  • + + node + Tree.Node + + + + +
    +

    Node being opened.

    +
    + + +
  • + +
  • + + src + String + + + + +
    +

    Source of the event.

    +
    + + +
  • + +
+
+ + + + +
+ + +
+ +
+
+ +
+
+
+
+
+
+ + + + + + + + + +