(Rails)如何使用上下文菜单等模仿Finder / Explorer视图?

时间:2023-01-17 09:59:38

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.

我正在寻找一些模仿Finder(或“资源管理器视图”)的高质量技术。最终我想要树视图,上下文菜单等。我猜测会有大量的Javascript,这很好,我只是好奇是否有优质的现有助手,等等的东西。

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.

我已经有大多数项目的添加/删除逻辑,我只是​​想改进GUI。

Thanks.

1 个解决方案

#1


0  

Take a look at ExtJS library. Here is an example: http://extjs.com/deploy/dev/examples/tree/column-tree.html

看看ExtJS库。以下是一个示例: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

更新:这是一个工作链接:http://docs.sencha.com/ext-js/4-1/#!/guide/tree

#1


0  

Take a look at ExtJS library. Here is an example: http://extjs.com/deploy/dev/examples/tree/column-tree.html

看看ExtJS库。以下是一个示例: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

更新:这是一个工作链接:http://docs.sencha.com/ext-js/4-1/#!/guide/tree