扩展树菜单列表 [英] Expandable Tree Menu List
问题描述
我想实现的是以下内容:
What I want to achieve is the following:
我想要当一个项目展开时会出现在页面左侧的树状视图列表,它的项目是从数据库加载(我可以做到这一点的一部分),所以基本上它会像这样的:
I want to have a tree-view list that will appear on the left side of the page, when an Item is expanded, it's items are loaded from a database (I can do this part), so basically it will go like this:
+Category1
+Category2
+Category3
+Category4
在对 +
用户点击,它会显示下方,直到数据从DB抓住并添加到页面:
When the user clicks on +
, it will show the below till the data is grabbed from DB and added to the page:
+Category1
-Category2
loading ...
+Category3
+Category4
数据被加载
后,将各子类将有子子类
After the data is loaded, each sub-category WILL have sub-sub-category.
+Category1
-Category2
+Sub-Cat1
+Sub-Cat2
+Sub-Cat3
+Sub-Cat4
+Category3
+Category4
我怎样才能做到这一点?
How can I achieve this?
请注意:我想知道如何把( *
或>
或任何其他符号列表,我相信这是CSS,但我根本不符合设计工作!)
NOTE: I want to know how to put (*
or >
or any other symbol for the list, I believe this is CSS but I don't work with design at all!!)
您的帮助实在是AP preciated。
Your help is really appreciated.
推荐答案
进一步搜索设法找到了这一点,这解决了我想要的东西。
further searching managed to find this, which solved what I want.
的http://designgala.com/expandable-collapsible-sitemap-with-jquery-treeview-plugin/
这篇关于扩展树菜单列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!