Sha256: fb9105e78c91d2ad74c94a24533d097e54bc7f9589bed6cbcdd30e66db2c665b
Contents?: true
Size: 1.31 KB
Versions: 1
Compression:
Stored size: 1.31 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="navigateTo($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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
coveragebook_components-0.8.2 | app/components/coco/app/blocks/sidebar_nav_item/sidebar_nav_item.html.erb |