Questions tagged [angular-tree-component]

angular-tree-component, a simple yet powerful tree component for Angular. Please ask only questions related to this component.

This is the place to ask questions about the angular-tree-component npm package. You can also try the Slack Community and the Docs/

If you've encountered an issue please file an issue on Github and follow the issue instructions.

53 questions
0
votes
1 answer

How to create data for Flat Array for Angular Tree using Javascript/Typescript

I have the following JSON data -> { "data": [ { "documentId": "new_148_45646", "data": "new_data6" }, { "documentId": "new_145_456", "data": "new_data1" }, { "documentId": "new_148_4546", …
0
votes
1 answer

disable checkbox in angular tree component

I am unable to find any way to disable checkbox node using angular tree component. There is no option to mark the tree disabled so that the checkboxes that appear alongwith th etree data should be disabled. Please suggest
0
votes
1 answer

How to implement this angular-tree-component async data code?

I am having trouble implementing this https://angular2-tree.readme.io/docs/async-data-1 . How do I rewrite the following code from OnInit to be async like in the documentation?: this.client.get(API_URL, this.httpOptions).subscribe( (res) => {…
Munchkin
  • 857
  • 5
  • 24
  • 51
0
votes
2 answers

How to store HttpClient GET fetched data into a variable?

My Backend over at localhost:3000/gettreeview returns a JSON object and it needs to be stored in the variable nodes. I tried to accomplish it with the code below but have failed: import { Component, OnInit } from '@angular/core'; import {…
Munchkin
  • 857
  • 5
  • 24
  • 51
0
votes
1 answer

angular tree component expand after loading data

I want to expand the first node on startup. I saw here the way to go. The difference is that I don't have the nodes in my code but get it from my databse. This is my Code: this.appService.getTreeStructure().then((treeNodes) => { this.nodes =…
LastChar23
  • 449
  • 1
  • 4
  • 15
0
votes
1 answer

AngularJS UI-Grid Tree View: How can child rows have different column names than parent rows?

I am trying to have different columns and column names for child rows than the parents rows in TreeView in UI-Grid There is already a question asked, but the link provided in the comment section has expired. Angular UI-Grid Tree View - Change the…
0
votes
1 answer

Customizing data structure as table

I have a question about tree component. Is it possible to make my tree component like a table ? Here is what i exactly want: Here is some snippet from example of documentation: nodes = [ { id: 1, name: "Санхүү", children: [{…
batgerel.e
  • 837
  • 1
  • 10
  • 31
0
votes
1 answer

Angular-tree-component ASync Child not loaded?

I am using npm install --save angular-tree-component child nodes are not loaded when i click parent it shows "loading..." message here is my code options: ITreeOptions = { getChildren: this.getChildren.bind(this) }; getChildren(node: any)…
1 2 3
4