Sha256: 0215226815494f0bd161054a8560766e73e8be35af47f8567acd22f7e6801e7a

Contents?: true

Size: 471 Bytes

Versions: 11

Compression:

Stored size: 471 Bytes

Contents

<%#
    headmin/dropdown/button
    accepts block: yes
    parameters:
      id: unique identifier for the dropdown
      class: css class names as string
%>
<% id = local_assigns.has_key?(:id) ? id : "dropdown-1" %>
<% class_names = local_assigns.has_key?(:class) ? local_assigns[:class] : "btn" %>

<a class="dropdown-toggle d-flex align-items-center <%= class_names %>" type="button" id="<%= id %>" data-bs-toggle="dropdown" aria-expanded="false">
  <%= yield %>
</a>

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
headmin-0.6.3 app/views/headmin/dropdown/_button.html.erb
headmin-0.6.2 app/views/headmin/dropdown/_button.html.erb
headmin-0.6.1 app/views/headmin/dropdown/_button.html.erb
headmin-0.6.0 app/views/headmin/dropdown/_button.html.erb
headmin-0.5.9 app/views/headmin/dropdown/_button.html.erb
headmin-0.5.8 app/views/headmin/dropdown/_button.html.erb
headmin-0.5.7 app/views/headmin/dropdown/_button.html.erb
headmin-0.5.6 app/views/headmin/dropdown/_button.html.erb
headmin-0.5.5 app/views/headmin/dropdown/_button.html.erb
headmin-0.5.4 app/views/headmin/dropdown/_button.html.erb
headmin-0.5.3 app/views/headmin/dropdown/_button.html.erb