Sha256: 7a54f07b98850a282b45898e3568600b88a3e633189cba0bbdf980eb6ee0afaf

Contents?: true

Size: 1.45 KB

Versions: 14

Compression:

Stored size: 1.45 KB

Contents

<% 5.times do%>
<br>
<%end%>

<%= pb_rails("filter", props: {
  id:"2",
  filters: [
    {name: "name", value: "John Wick"}
    ],
  sort_menu: [
    {item:"Popularity", link:"#", active: true, direction:"desc"},
    {item:"Title", link:"#", active: false},
    {item:"Name", link:"#", active: false},
  ],
  results: 546,
  template: "single"
  }) do%>
<%
  example_collection = [
    OpenStruct.new(name: "Alabama", value: 1),
    OpenStruct.new(name: "Alaska", value: 2),
    OpenStruct.new(name: "Arizona", value: 3),
    OpenStruct.new(name: "Arkansas", value: 4),
    OpenStruct.new(name: "California", value: 5),
    OpenStruct.new(name: "Colorado", value: 6),
    OpenStruct.new(name: "Connecticut", value: 7),
    OpenStruct.new(name: "Delaware", value: 8),
    OpenStruct.new(name: "Florida", value: 9),
    OpenStruct.new(name: "Georgia", value: 10),
  ]
%>

<%= pb_rails("form", props: { form_system_options: { scope: :example, method: :get } }) do |form| %>
  <%= form.text_field :example_text_field, props: { label: true } %>
  <%= form.collection_select :example_collection_select, example_collection, :value, :name, props: { label: true } %>

  <%= form.actions do |action| %>
    <%= action.submit props: { text: "Apply", data: { disable_with: "<i class='far fa-spinner fa-spin mr-3'></i>Searching...".html_safe },}%>
    <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
  <% end %>
<% end %>

<% end %>
<% 5.times do%>
<br>
<%end%>

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
playbook_ui-4.14.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.15.1.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.13.1 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.13.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.12.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.11.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.11.0.pre.alpha3 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.11.0.pre.alpha.pre.2 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.10.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.10.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.9.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.9.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.8.2 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-4.8.1 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb