Angular Draggable Tree Component | pioneer-tree

Pioneer Tree is an angular tree component that aims to stay out of your way. It gives you the freedom and tools to produce dynamic tree components in tags that you define.

angular tree component add node, angular tree component click event, angular mat tree drag and drop, drag and drop treeview in angular, angular treeview example

Features

  • Intuitive markup defined by you.
  • Collapsible nodes
  • Selected node tracking
  • Opt-in public state tracking
  • Drag & Drop
  • Sort tracking
  • Events
    • Node Dropped
  • Filtering
  • Configurable
    • Sort property binding
    • Child property binding
    • Default collapse & expand the state
  • Public API
    • Expand or Collapse all
    • Collapse all, expand and set the node as active.

How to make use of it:

Installation:

$ npm install @pioneer-code/pioneer-tree –save

Usage

<ng-template #nodeTemplate let-node>
  <ul class="menu content">
    <li>
      <span pioneer-tree-collapse
        [node]="node">
        <i class="fa"
          [ngClass]="this.node.pioneerTreeNode.isCollapsed() ? 'fa-folder' : 'fa-folder-open'">
        </i>
      </span>
    </li>
    <li>
      <span pioneer-tree-handle [node]="node">
        {{node.name}} - {{node.pioneerTreeNode.sortIndex}} :
      </span>
    </li>
    <li>
      <a title="Collapse All, Expand This, Set Active"
        (click)="ptComponent.pioneerTree.collapseAllExpandThisSetActive(node)">
        <i class="fa fa-heart-o"></i>
      </a>
    </li>
  </ul>
</ng-template>
<ng-template #repeaterTemplate let-node>
  <ul pioneer-tree-repeater [nodes]="node.children">
    <li pioneer-tree-node
      *ngFor="let node of node.children" (nodeDropped)="onNodeDropped($event)"
      [nodeTemplate]="nodeTemplate"
      [repeaterTemplate]="repeaterTemplate" [node]="node">
    </li>
  </ul>
</ng-template>
<ul pioneer-tree #pt [configuration]="configuration" [nodes]="nodes">
  <li pioneer-tree-node *ngFor="let node of nodes"
    (nodeDropped)="onNodeDropped($event)"
    [nodeTemplate]="nodeTemplate"
    [repeaterTemplate]="repeaterTemplate"
    [node]="node">
  </li>
</ul>

angular-tree-component-add-node

draggable tree component for angular, Pioneer Tree Plugin/Github


See Demo And Download

Official Website(PioneerCode): Click Here

This superior jQuery/javascript plugin is developed by PioneerCode. For extra advanced usage, please go to the official website.

Related Posts

Input-Values-Using-Mouse-Drag

Create Side Sliders Input Values Using Mouse Drag | Pointer Lock

HTML Range Slider is a lightweight library to create side sliders to adjust values easily and precisely by making use of the Pointer Lock API. Side Slider…

simple-parallax-scrolling-js

Smooth and Lightweight Parallax Scroll Library in Pure Javascript

Lightweight and seamless parallax scrolling library implemented in pure javascript using hardware acceleration for additional performance. Main Features Extremely lightweight with no dependencies A few kilobytes of pure…

Convert-Form-Data-to-JSON

How to Convert Form Data to JSON with HTML Forms | FormsJS

FormsJS is a simple-to-use JavaScript library that covers type subject values to JSON in real time. The items containing the data category will be analyzed automatically. It…

editable-html-table-using-javascript

A Small jQuery Extension to Convert An Editable HTML Table

Editable Table is a small jQuery extension to convert an editable HTML table for fast data entry and validation. A small jQuery extension to convert a static…

jquery.youtube-background

Simple jQuery Plugin for Embedding YouTube Videos As Cover Background

jquery.youtube-background is a jQuery plugin built to facilitate YouTube embeds as cover wallpaper using the YouTube Embed API. There is another jQuery Youtube Video Background plugin that…

Data-Table-Generator-Tabulator

Interactive Data Table Generator with JS/jQuery and JSON | Tabulator

Tabulator allows you to create interactive tables in seconds from any HTML Table, JavaScript array, AJAX data source, or JSON format data. Just include the library in your…