Django 卷起(可折叠)菜单
我有一个包含三个框架(横幅、菜单、内容)的网络应用程序 菜单框架需要有一个动态的卷起菜单 示例:
+ Teachers
- Create
- Edit
- Delete
+ Schools
- Create
- Edit
- Delete
- View Staff
+ Classrooms
- Create
- Edit
- Delete
如果您单击 + 或“学校”,它将隐藏/取消隐藏其下的项目。 用户登录后需要根据用户组和角色动态绘制菜单。 某些用户可能仅被授权查看
+ Classrooms
-Edit
,而某些用户将看到所有内容。
是否有任何人使用过的任何构建或插件可以为我需要的提供框架?
I have a web app with three frames (banner, menu, content)
The menu frame needs to have a dynamic roll-up menu
Example:
+ Teachers
- Create
- Edit
- Delete
+ Schools
- Create
- Edit
- Delete
- View Staff
+ Classrooms
- Create
- Edit
- Delete
If you click on the + or "Schools" it will hide/un-hide items under it.
The menu needs to be dynamically drawn after user login based on user group and role.
Some users may only be authorized to see
+ Classrooms
-Edit
and some users will see everything.
Is there anything built or a plugin that anyone has used that would provide a framework for what I need?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
使用 jQuery 的简单实现:
Simple implementation using jQuery:
也许在这里(对于 django):
http://www.google.pl/search?q=django+tree+menu
和这里(对于js)
http://www.google.pl/search?q=javascript+tree+menu
或者这里更好(jQuery)
http://www.google.pl/search?q=jquery+tree+menu
无论如何,对于简单的情况,制作自己的实现并不难。
Maybe here (for django):
http://www.google.pl/search?q=django+tree+menu
and here (for js)
http://www.google.pl/search?q=javascript+tree+menu
or better here (jQuery)
http://www.google.pl/search?q=jquery+tree+menu
Anyway, for simple cases, its not too hard to make your own impl.