Questions tagged [angular-ui-tree]

A tree component for AngularJS, without jQuery as dependency.

Angular UI Tree is an AngularJS UI component that can sort nested lists, provides drag & drop support and doesn't depend on jQuery. https://github.com/angular-ui-tree/angular-ui-tree

71 questions
1
vote
1 answer

Angular UI Tree: Get old and new parent of node

I created two trees and when I move a node from one tree to another I would like to know names of old and new tree. I added data-tree-name="unsorted" in ui-tree but I don't know how to access it. This is my code:
Alen
  • 1,750
  • 7
  • 31
  • 62
1
vote
1 answer

angular-ui-tree: How to get html element of last added node

maybe this is a silly question, but I haven't found a solution here in stackoverflow or in the documentation of angular-ui-tree. I need to get the html element of the latest added node. To be more precisely I have a xeditable element in the node…
blacksheep_2011
  • 1,083
  • 3
  • 11
  • 22
1
vote
0 answers

Using nodes with parents instead of nodes with children in Angular UI Tree

I'm using Angular UI Tree to show a TreeView. To request all nodes to a REST API, I use restangular to return a list of nodes. But, Angular UI Tree uses this data structure: [ { "id" : 1, "nodes": [ { "id" : 11 …
Lucas Katayama
  • 4,445
  • 27
  • 34
1
vote
1 answer

Adding a child to any parent on Angular UI Tree pushes it to every parent

I have been playing around with the Angular UI Tree drag and drop and have come by an issue that has stumped me. The json is being received from my services. When it is received by my controller, I must format it properly with an empty array so it…
cfly24
  • 1,882
  • 3
  • 22
  • 56
1
vote
0 answers

defining empty list template in angular-ui-tree

does anyone know if there's a way to define a template for an empty ui-tree list? If the list model ist empty there will be a default
element generated (if not turned off by data-empty-placeholder-enabled),…
Dennis G.
  • 11
  • 3
1
vote
2 answers

How to bind desIndex to sort values in angular-ui-tree?

I'm using angular-ui-tree. The object I have in my treeview has a sort index. I am looking for a way to bind this sort index to the desIndex of the treeview scope, using something similar to this: ui-tree-desIndex="node.sortIndex" desIndex is the…
DaCh
  • 921
  • 1
  • 14
  • 48
1
vote
0 answers

Angular UI-Tree dragged item doen't show floating

I followed the instruction of ui-tree on github. Everything goes fine, except when i drag an item. The dragged item doesn't show in floating style as shown in demo, but the node of dragged item disappear from DOM. Any idea what could be the possible…
HW Siew
  • 973
  • 8
  • 16
1
vote
1 answer

Angular UI Tree Module: removed callback not working

I am using this module: https://github.com/angular-ui-tree/angular-ui-tree And I can not make the removed callback work. Here is an example with an "accept" callback working, but "removed" not:
rtmc
  • 109
  • 1
  • 7
1
vote
1 answer

Angular ui-tree detect drag event between connected trees

I would like to detect event when item was dragged from tree#1 and dropped to tree#2. In this case i would like to call a specific http action to save it. I use the dropped event with actions inside one tree, but i can't manage it when i move item…
mtch9
  • 298
  • 2
  • 11
1
vote
1 answer

How to divide rows to two table with angularjs

how to divide rows to two tables with angularjs I have tried this but it is not working for drag and drop
nagulu vemula
  • 119
  • 1
  • 10
1
vote
0 answers

Angular tree filter can't dim

I'm using angular-ui-tree-filter library to create a filter in my treeview. According to the example here: http://ee.github.io/angular-ui-tree-filter/ you can choose by a checkbox to dim the filter results. I tried but i can dim only the root items.…
Atlas91
  • 5,754
  • 17
  • 69
  • 141
1
vote
2 answers

How to change cursor?

In the angular-ui-tree I've noticed that items has the drag or move cursor which is good when having items that we need to be drag-gable. But how can I set the cursor to normal arrow instead?
Samir Sabri
  • 937
  • 3
  • 11
  • 26
1
vote
2 answers

issue with angularjs ui tree filtering at child level

Angularjs UI tree filtering feature is not working at child level however it is working fine at group level. For example if we type node1 or node2 filtering works fine, but if we type node1.2 or node2.1, filtering won't work properly. Please find…
1
vote
1 answer

issue in using Angularjs ui tree inside ng Dialog

I am trying to show angular js ui tree inside ng dialog. Even though the appearance is fine but the check box functionality is not working. Similarly Select All, Collapse All, etc buttons functionality is also not working inside ng Dialog. Can any…
1
vote
2 answers

Insert sibling item to Angular-UI-tree

I need to insert a sibling item to tree on click in angular-ui-tree (https://github.com/angular-ui-tree/angular-ui-tree) it means I have:
David
  • 825
  • 10
  • 33