Sha256: 8ac6e51743fedd2ee9117347f45a1a6a5599da37785cce97c73eeb0ae5565f01

Contents?: true

Size: 583 Bytes

Versions: 4

Compression:

Stored size: 583 Bytes

Contents

<%
  # headmin/dropdown/list
  #
  # ==== Options
  # * <tt>id</tt> - unique identifier for the dropdown
  # * <tt>class</tt> - Custom class names to put on the dropdown menu
  #
  # ==== Examples
  #   Basic version
  #   <%= render "headmin/dropdown/devise"  %#>
  #
  #   Custom scope
  #   <%= render "headmin/dropdown/devise", scope: :admins  %#>

  class_names = local_assigns.has_key?(:class) ? local_assigns[:class] : ''
  id = local_assigns.has_key?(:id) ? id : 'dropdown-1'
%>

<ul class="dropdown-menu <%= class_names %>" aria-labelledby="<%= id %>">
  <%= yield %>
</ul>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
headmin-0.2.9 app/views/headmin/dropdown/_list.html.erb
headmin-0.2.8 app/views/headmin/dropdown/_list.html.erb
headmin-0.2.7 app/views/headmin/dropdown/_list.html.erb
headmin-0.2.6 app/views/headmin/dropdown/_list.html.erb