angular-trees
TypeScript icon, indicating that this package has built-in type declarations

1.1.4 • Public • Published

Angular tree diagram

About

This is Angular 8 Hierarchical UI module.

Preview

Features

  • Drag and drop
  • Zoom and pan
  • Configurable node width/height
  • Add/remove nodes
  • TreeComponent-like UI
  • Pure CSS relation lines
  • No dependencies

Installation

npm i angular-tree

Usage

  • Import module in your project
  • Use tree-diagram directive
  • Pass array of nodes and config
  • See example.json for more details

Example

<tree-diagram [data]="data"></tree-diagram>
...
data = {
  json: [
    {
      "guid": "bc4c7a02-5379-4046-92be-12c67af4295a",
      "displayName": "Elentrix",
      "children": [
        "85d412c2-ebc1-4d56-96c9-7da433ac9bb2",
        "28aac445-83b1-464d-9695-a4157dab6eac"
      ]
    },
    ...
  ],
  config: {
    nodeWidth: 200,
    nodeHeight: 100
  }
}

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i angular-trees

    Weekly Downloads

    5

    Version

    1.1.4

    License

    MIT

    Unpacked Size

    466 kB

    Total Files

    44

    Last publish

    Collaborators

    • saiteja26