50 questions
2
votes
2
answers
3k
views
NestedTreeControl is deprecated, what should I use in Angular v19 now?
I am upgrading an Angular app to version 19. After the upgrade, I found out that NestedTreeControl is deprecated. Even though it is still available, my IDE shows that
@deprecated Use one of ...
0
votes
0
answers
69
views
angular cdk dnd with angular tree component package
I am trying to use angular cdk dnd with angular tree component package.
currently i am using ng2-dnd.
ng2-dnd code
<div class="tree">
<tree-root
#tree
id="tree2&...
0
votes
1
answer
142
views
how can I wait for the treenode to be fully expended
envirement:("@angular/core": "~7.1.0","angular-tree-component": "^8.0.1")
The problem is that i'm filtering through the node children but for some nodes the ...
2
votes
2
answers
2k
views
'TreeModule' does not appear to be an NgModule class
I just literally follow the step by step here in this documentation but for some reason im having this error when i try to import angular-tree-component in app.module.ts eror
i just follow the ...
0
votes
1
answer
192
views
Angular Tree Component: get top level parent of current node
I want to find the top-level parent (on the tree) of the current node.
I have the following code:
expandParents(node: any) {
const parent = node.data.x.parent;
if (!!parent && this....
1
vote
0
answers
666
views
Selecting parent node does not select child node with hasChildren true in angular-tree-component
I am using angular-tree-component v7.2.0 with angular 5.
HTML
<tree-root #treeRoot [nodes]="nodesOfSites" [options]="options"></tree-root>
TS
nodesOfSites = [];
...
1
vote
0
answers
594
views
Tree node isn't being render in tree component
I have a tree component in which the tree root isn't being rendered.
I am working in angular 12, and when I implemented the tree component I did everything as stated in the documentation. But nothing ...
0
votes
1
answer
1k
views
Circular dependency with angular 13
i've been trying to build the library with angular 13 and im getting an circular dependency error:
The component 'TreeNodeChildrenComponent' is used in the template but importing it would create a ...
1
vote
0
answers
896
views
@circlon/angular-tree-component: How to customize checkbox template
I want to use custom templates for the tree nodes as shown here on their website
https://angular2-tree.readme.io/docs/templates
But I also need the checkbox tri-state functionality as demonstrated ...
2
votes
1
answer
132
views
Rotate symbol inside CSS content property without changing its position
I want to rotate symbol by its center without move
I tried to apply display: inline-block and transform origin: center center not helped, classes
.toggle-children-wrapper-collapsed and .toggle-...
1
vote
0
answers
854
views
Angular: Exporting JSON data to Excel using npm-xlsx
I've been trying to export a data from Tree Family structure which contains JSON data and a lot of arrays.
The export functionality works just fine but it is not exporting the whole thing.
This is ...
1
vote
1
answer
311
views
Angular Tree Component init errors
I'm trying to implement a very basic usage of Angular Tree Component in my application. Angular version is 9, component version is 9.0.5.
I uncluded TreeModule into my app module's imports. Inserted ...
0
votes
1
answer
671
views
Angular Mobx multiple versions
In my angular project, I have multiple dependencies which require mobx.
There is mobx-react which requires v. 6.1.0 as a peer dependency
@circlon/angular-tree-component requires 4.14.1
This causes an ...
1
vote
1
answer
582
views
how to use recursive function to select the parent in a tree array using angulat ui tree?
So, I'm trying to create a hierarchical tree. Whena node is selected that has children, then all the children of the node is selected, but when I select all the children I also want to select the ...
1
vote
1
answer
2k
views
How to find a node by id in the PrimeNg tree?
We are moving from Angular Tree Component to the PrimeNg Tree component.
The tree selection is saved and restored when the application starts. We save the key field (folderId in our case).
Angular ...