Sha256: 671a3d348a15f7358c142ae9eb0e54c6041d5a420ab0e681550d2f2aaffd2530

Contents?: true

Size: 1.29 KB

Versions: 207

Compression:

Stored size: 1.29 KB

Contents

<%=
  pb_rails("filter", props: {
    id: "nosort",
    filters: [
      { name: "name", value: "John Wick" }
    ],
    results: 546,
    template: "filter_only",
  }) 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 %>

Version data entries

207 entries across 207 versions & 1 rubygems

Version Path
playbook_ui-10.26.0.pre.alpha5 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.26.0.pre.rc1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.26.0.pre.alpha.sticky1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.26.0.pre.alpha.display1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.26.0.pre.alpha3 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.25.1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.26.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.25.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.25.0.pre.alpha3 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.25.0.pre.treeshaking1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.24.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.24.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.23.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.23.0.pre.alpha2 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.23.0.pre.cachetest app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.23.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.22.1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.22.0 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.21.1.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb
playbook_ui-10.21.0.pre.alpha.lightbox.2 app/pb_kits/playbook/pb_filter/docs/_filter_no_sort.html.erb