Sha256: d1cacb05f7e7b87ffc30f7f6b1677d8bb0fae5973eb26f3cf74c00ccea5ced15
Contents?: true
Size: 1.33 KB
Versions: 3
Compression:
Stored size: 1.33 KB
Contents
<%= render component_tag( x: { data: "appSidebarNavItem", "on:click": "if (menu) $event.preventDefault()" }, class: { active: active?, emphasised: emphasise? }) do %> <%= icon %> <label class="nav-item-label"> <%= label %> </label> <% if menu? || menu_items? %> <%= tag.template id: menu_template_id, "x-ref": "menu" do %> <%= tag.div id: menu_id, class: "sidebar-nav-menu", "x-cloak": "" do %> <% if menu? %> <%= menu %> <% else %> <%= safe_join(menu_items) %> <% if dropdown_menu_items.any? %> <select x-data class="sidebar-nav-menu-select" @change="$dispatch('navigate', {url: $el.value})"> <% if menu_select_placeholder.present? %> <option disabled="disabled" selected="selected"><%= menu_select_placeholder %></option> <% end %> <% dropdown_menu_items.each do |item| %> <option value="<%= item[:href] %>"> <%= item[:label] %> <%= "(#{item[:qualifier]})" if item[:qualifier].present? %> </option> <% end %> </select> <% end %> <%= menu_action %> <% end %> <% end %> <% end %> <% end %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems