(Rails) 如何使用上下文菜单等模仿 Finder/Explorer 视图?
我正在寻找一些模仿 Finder(或“资源管理器视图”)的高质量技术。 最终我想要树视图、上下文菜单等。我猜会有大量的 Javascript,这很好,我只是好奇是否有高质量的现有帮助程序等。事物。
当前的关系模型如下:
Sites -> Buildings -> Meters -> Values
与 Charts 存在多态关系,因此还有:
Sites -> Charts
Buildings -> Charts
Meters -> Charts
我已经有了大多数项目的添加/删除逻辑,我只是想改进 GUI。
谢谢。
I'm looking for some quality techniques for mimicking a Finder (or "Explorer View"). Eventually I want to have treeviews, contextual menus, etc. I'm guessing there is going to be a good deal of Javascript, which is fine, I'm just curious as to whether there are quality existing helpers, etc for any of these things.
The current relationship model is as follows:
Sites -> Buildings -> Meters -> Values
There is a polymorphic relationship with Charts, so there's also:
Sites -> Charts
Buildings -> Charts
Meters -> Charts
I already have the add/remove logic for most of the items, I simply want to improve the GUI.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
看一下 ExtJS 库。
这是一个示例: http://extjs.com/deploy/dev /examples/tree/column-tree.html
更新:
这是一个工作链接:http://docs.sencha。 com/ext-js/4-1/#!/guide/tree
Take a look at ExtJS library.
Here is an example: http://extjs.com/deploy/dev/examples/tree/column-tree.html
Update:
Here's a working link: http://docs.sencha.com/ext-js/4-1/#!/guide/tree