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

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -