javascript - TreeView in Html / Angular -


i trying create similar tree view in html , using angular. current issue normal select statement go 1 layer deep on parent-child relations cannot select optgroups or rename them. example of code this:

id | parentid | name  1 |   null   | building              building  2 |     1    | room 1                      room 1  3 |     1    | room 2                          closet 1  4 |     2    | closet 1                    room 2  5 |   null   | building b              building b 

with example, able select of values on right consumer , return corresponding id related selection.

edit: further explain question, guess looking treeview inside of combobox shown in this image used in table.

the table structure using fill combobox similar demo shown above, list of locations details of id, optional parentid, , name.

any suggestions on how create fantastic. thank you!

can elaborate question here? code can share guide? think may able help, have build hierarchy tree similar asking, not sure need.


Comments

Popular posts from this blog

AbotX : How do you create a parallel crawler that stays on and can be added to at run time from new requests -

testing - Detect whether test has failed within fixture -

android - Create single AAR file from multiple modules using Gradle -