Tree Select Component #156
Replies: 5 comments
-
Hi, Could you please share a stackblitz example so we can identify the issue? |
Beta Was this translation helpful? Give feedback.
-
Hello, this is the link, but I couldn't configure primeng There is a button that when clicked, sets the element to the indicated value and is seen in the treeselect |
Beta Was this translation helpful? Give feedback.
-
Hello friends,
|
Beta Was this translation helpful? Give feedback.
-
I share the solution I gave and if you know another way I would appreciate it. I thought that by passing the id to which the formControlName is related, its label would automatically be displayed. I am new to frontend, so I started reading the documentation and based on that, I did the following I have created a function that searches for the nodes
and when using the function it returns the node and I assign it to the variable of my formgroup
When I do this it no longer shows me the text empty, in the treeselect component |
Beta Was this translation helpful? Give feedback.
-
Hi, Your example does not start please create a new one by forking this example https://stackblitz.com/edit/vmjy3y?file=src%2Fapp%2Fdemo%2Ftree-select-basic-demo.ts |
Beta Was this translation helpful? Give feedback.
-
Hello,
I have the following TreeSelect component, but when I populate it with a JSON object and use the formControlName, when I select an item, it displays the text "empty" inside the treeSelect, and when I retrieve the value linked to the formControlName, the related text doesn't appear in the TreeSelect; only the text 'empty' is displayed.
I am preparing an example since I suggested using PrimeNG for our Angular development, and I need your assistance. Thank you very much.
Beta Was this translation helpful? Give feedback.
All reactions