Show:

Tree.Node extension that adds methods useful for nodes in trees that use the Tree.Selectable extension.

Constructor

Tree.Node.Selectable

()

Index

Methods

isSelected

() Boolean

Returns true if this node is currently selected.

Returns:

Boolean:

true if this node is currently selected, false otherwise.

select

(
  • [options]
)
chainable

Selects this node.

Parameters:

  • [options] Object optional

    Options.

    • [silent=false] Boolean optional

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

unselect

(
  • [options]
)
chainable

Unselects this node.

Parameters:

  • [options] Object optional

    Options.

    • [silent=false] Boolean optional

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