Sha256: 4b6dd17d5c83f0e365448c9b389d1cc127f00efda3367c08c58558be1f68bc65

Contents?: true

Size: 506 Bytes

Versions: 9

Compression:

Stored size: 506 Bytes

Contents

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

  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

9 entries across 9 versions & 1 rubygems

Version Path
headmin-0.5.1 app/views/headmin/dropdown/_list.html.erb
headmin-0.5.0 app/views/headmin/dropdown/_list.html.erb
headmin-0.4.2 app/views/headmin/dropdown/_list.html.erb
headmin-0.4.1 app/views/headmin/dropdown/_list.html.erb
headmin-0.4.0 app/views/headmin/dropdown/_list.html.erb
headmin-0.3.4 app/views/headmin/dropdown/_list.html.erb
headmin-0.3.3 app/views/headmin/dropdown/_list.html.erb
headmin-0.3.2 app/views/headmin/dropdown/_list.html.erb
headmin-0.3.1 app/views/headmin/dropdown/_list.html.erb