Sha256: 35d8358662e2ae740e3d32d74f9502959922625dfccaf9bbe5cbe2be9b472d7e

Contents?: true

Size: 725 Bytes

Versions: 57

Compression:

Stored size: 725 Bytes

Contents

<div class="space-y-1 mb-4"
  <% if collapsable %>
    data-controller="menu"
    data-menu-target="self"
    data-menu-key-param="<%= key %>"
    data-menu-default-collapsed-state="<%= collapsed ? 'collapsed' : 'expanded' %>"
  <% end %>
>
  <%= render Avo::Sidebar::HeadingComponent.new label: item.name, icon: helpers.svg(icon, class: "h-5"), collapsable: item.collapsable, collapsed: collapsed, key: key %>
  <%= content_tag :div, class: class_names("w-full space-y-1", {"hidden": collapsed}),
    data: {
      menu_target: :items,
      **section_collapse_data_animation
    } do %>
    <% @items.each do |item| %>
      <%= render Avo::Sidebar::ItemSwitcherComponent.new item: item %>
    <% end %>
  <% end %>
</div>

Version data entries

57 entries across 57 versions & 1 rubygems

Version Path
avo-3.18.1.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.18.1 app/components/avo/sidebar/section_component.html.erb
avo-3.18.0.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.18.0 app/components/avo/sidebar/section_component.html.erb
avo-3.17.9.beta2 app/components/avo/sidebar/section_component.html.erb
avo-3.17.9.beta1 app/components/avo/sidebar/section_component.html.erb
avo-3.17.9.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.17.9 app/components/avo/sidebar/section_component.html.erb
avo-3.17.8.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.17.8 app/components/avo/sidebar/section_component.html.erb
avo-3.17.7 app/components/avo/sidebar/section_component.html.erb
avo-3.17.6.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.17.6 app/components/avo/sidebar/section_component.html.erb
avo-3.17.5 app/components/avo/sidebar/section_component.html.erb
avo-3.17.4 app/components/avo/sidebar/section_component.html.erb
avo-3.17.3 app/components/avo/sidebar/section_component.html.erb
avo-3.17.5.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.17.4.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.17.3.tw4 app/components/avo/sidebar/section_component.html.erb
avo-3.17.2.tw4 app/components/avo/sidebar/section_component.html.erb