Sha256: cc386dc87d789a7cbb896cb8dafdf8d2c6ae0c5d53119e7c6df3657be60d3528
Contents?: true
Size: 776 Bytes
Versions: 3
Compression:
Stored size: 776 Bytes
Contents
<% # headmin/filters/boolean # # ==== Required parameters # * +attribute+ - Name of the attribute to be filtered # * +collection+ - Values to create option tags for # * +form+ - Form object # # ==== Optional parameters # * +label+ - Display label # * +name+ - Name of the filter parameter # # ==== Examples # Basic version # <%= render "headmin/filters", url: admin_orders_path do |form| %#> # <%= render "headmin/filters/options", form: form, attribute: :category %#> # <% end %#> options = Headmin::Filter::OptionsView.new(local_assigns.merge(params: params)) %> <%= render "headmin/filters/base", options.base_options do |value| %> <%= render "headmin/forms/select", options.input_options.merge(selected: value) %> <% end %>
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
headmin-0.5.3 | app/views/headmin/filters/_options.html.erb |
headmin-0.5.1 | app/views/headmin/filters/_options.html.erb |
headmin-0.5.0 | app/views/headmin/filters/_options.html.erb |