[英]How to Create and display Tree view (using JAVA, Aurelia)
I have a Map Collection of parents and children in my Java code of format 我有Java格式的父母和孩子的地图集
Family{
String id;
String Name;
String parent Name;
String childName;
}
i need to display this data in tree format in my html using javascript so that they appear as 我需要使用javascript在我的html中以树格式显示此数据,以便它们显示为
so can any one please help me to create a tree Map such that the children are nested inside the parent and so on and display them using aurelia and also how to implement tree view in aurelia ? 所以任何人都可以帮我创建一个树图,使子级嵌套在父级中,依此类推,并使用aurelia显示它们,以及如何在aurelia中实现树形视图吗?
i have no idea how to create nodes or nested tree object. 我不知道如何创建节点或嵌套的树对象。
With Java I don't know but you can reefer below gist run link for tree structure. 使用Java我不知道,但是您可以在树结构的gist run链接下面重新保存。
https://gist.run/?id=53dc5b81ef1549cdcc56c3b1fa1e67ba https://gist.run/?id=53dc5b81ef1549cdcc56c3b1fa1e67ba
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.