Sha256: 8e0cba8f1612516f8e0502cdbe00217340904eaa664643b0ef851fed0e39cf3f

Contents?: true

Size: 724 Bytes

Versions: 28

Compression:

Stored size: 724 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

28 entries across 28 versions & 1 rubygems

Version Path
avo-3.11.7 app/components/avo/sidebar/section_component.html.erb
avo-3.11.6 app/components/avo/sidebar/section_component.html.erb
avo-3.11.5 app/components/avo/sidebar/section_component.html.erb
avo-3.11.4 app/components/avo/sidebar/section_component.html.erb
avo-3.11.3 app/components/avo/sidebar/section_component.html.erb
avo-3.11.2 app/components/avo/sidebar/section_component.html.erb
avo-3.11.1 app/components/avo/sidebar/section_component.html.erb
avo-3.11.0 app/components/avo/sidebar/section_component.html.erb
avo-3.10.10 app/components/avo/sidebar/section_component.html.erb
avo-3.10.9 app/components/avo/sidebar/section_component.html.erb
avo-3.10.8 app/components/avo/sidebar/section_component.html.erb
avo-3.10.7 app/components/avo/sidebar/section_component.html.erb
avo-3.10.6 app/components/avo/sidebar/section_component.html.erb
avo-3.10.5 app/components/avo/sidebar/section_component.html.erb
avo-3.10.4 app/components/avo/sidebar/section_component.html.erb
avo-3.10.3 app/components/avo/sidebar/section_component.html.erb
avo-3.10.2 app/components/avo/sidebar/section_component.html.erb
avo-3.10.1 app/components/avo/sidebar/section_component.html.erb
avo-3.10.0 app/components/avo/sidebar/section_component.html.erb
avo-3.9.2 app/components/avo/sidebar/section_component.html.erb