Sha256: 036b827c09a08d1a774b1e6ed75f758834c2c73f7392cf7ce5150b9e03feed2e
Contents?: true
Size: 993 Bytes
Versions: 2
Compression:
Stored size: 993 Bytes
Contents
<%# headmin/filters/filter/button accepts block: yes parameters: name: (string) Name of the parameter value: (string) Value of the parameter %> <% button_view = Headmin::Filter::ButtonView.new(local_assigns) %> <div class="h-filter me-1 my-1" data-controller="filter" data-filter-name="<%= button_view.name %>" data-filter-name-value="<%= button_view.name %>"> <button type="button" class="h-filter-button btn h-btn-outline-transparent" data-filter-target="button" data-popup-target="button" data-popup-id="<%= button_view.id %>" data-action="click->popup#open" > <%= raw("#{button_view.label} #{button_view.filter&.string(display_values: button_view.display_values)}") %> <span class="h-filter-remove" data-action="click->filters#remove"> <%= bootstrap_icon('x-lg') %> </span> </button> <%= render "headmin/popup", id: "#{button_view.id}", data: {'filter-target': 'popup'} do %> <%= yield %> <% end %> </div>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.1 | app/views/headmin/filters/filter/_button.html.erb |
headmin-0.5.0 | app/views/headmin/filters/filter/_button.html.erb |