Tree.Node

Tree Node. xclass: 'tree-item'.

parents: Component.Controller

defined in: basenode.js

Class

Attributes

  • depth {Number} depth of node.
  • expanded {} Whether current tree node is expanded.
  • expandIconEl {} Element for expand icon.
  • iconEl {} Element for icon.
  • isLeaf {Boolean} Only For Config.
  • selected {Boolean} Whether current tree node is selected.
  • tooltip {String} Html title for current tree node.
  • tree {Tree} Tree instance current tree node belongs to.

Methods

  • collapseAll () Collapse all descend nodes of current node
  • expandAll () Expand all descend nodes of current node
  • select () Select current tree node.

Class Detail

  • Tree.Node ()
    Tree Node. xclass: 'tree-item'.

Attributes Detail

  • depth {Number} depth of node.
  • expanded Whether current tree node is expanded.
  • expandIconEl Element for expand icon.
  • iconEl Element for icon.
  • isLeaf {Boolean} Only For Config. Whether to force current tree node as a leaf. Default:false. It will change as children are added.
  • selected {Boolean} Whether current tree node is selected.
  • tooltip {String} Html title for current tree node.
  • tree {Tree} Tree instance current tree node belongs to.

Methods Detail

  • collapseAll () view source
    Collapse all descend nodes of current node
  • expandAll () view source
    Expand all descend nodes of current node
  • select () view source
    Select current tree node.
blog comments powered by Disqus
Top