Skip to content

v2.0.0-alpha.9

Pre-release
Pre-release

Choose a tag to compare

@rychkog rychkog released this 27 Aug 20:46
· 99 commits to master since this release

Bug Fixes

  • handle rxjs subscriptions (5db73e0)
  • tree, menu: return proper value for positionInParent call; change z-index of the menu (0db681c)

Features

  • tree-api: create an API to manipulate a node
    This API allow manipulations on a node from outside of the tree.
    Methods of the API are:

    • select - select a node, only if it isn't already selected
    • isSelected - check if a node is selected
    • expand - expand a node, only if it isn't already expanded and it can expand
    • isExpanded - check if a node is expanded
    • collapse - collapse a node, only isn't collapsed already and it can collapse
    • rename - rename a node
    • remove - remove a node
    • addChild - create a child or a sibling of a node
    • changeNodeId - change node's id
    • reloadChildren - executes loadChildren function
    • setChildren - replace node's children with new ones

This API works only with nodes which have id.
Add selected class to the whole row of the seletced node