开发者

dynamic tree menu using awesome nested set

开发者 https://www.devze.com 2023-01-17 10:11 出处:网络
how do you create a dynamic tree menu helper using awesome nested set (or any other set plugin) in rails ? the result should look something like this:

how do you create a dynamic tree menu helper using awesome nested set (or any other set plugin) in rails ? the result should look something like this:

<div class="level_0">
  <span class="title">Categroy</span>
  <div class="level_1>
    <span class="title">SubCategroy</span>

    <div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

    <span class="title">SubCategroy</span>

    <开发者_C百科;div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

  </div>

  <div class="level_1>
    <span class="title">SubCategroy</span>

    <div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

    <span class="title">SubCategroy</span>

    <div class="level_2>
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
      SubSubcategory
    </div>

  </div>
</div>


I've managed to make something similar to what you describe following this:

http://asciicasts.com/episodes/162-tree-based-navigation

0

精彩评论

暂无评论...
验证码 换一张
取 消