Sha256: 042843e02ac5a08ba4bb298070fe7bdfba95d26298e4330c75688d58565536a8

Contents?: true

Size: 1.08 KB

Versions: 1205

Compression:

Stored size: 1.08 KB

Contents

<%=
  pb_rails("filter", props: {
    min_width: "360px",
    id: "pla",
    filters: [
      { name: "name", value: "John Wick" }
    ],
    placement: "right",
    template:"filter_only",
  }) do
%>
  <%
   example_collection = [
      OpenStruct.new(name: "USA", value: 1),
      OpenStruct.new(name: "Canada", value: 2),
      OpenStruct.new(name: "Brazil", value: 3),
      OpenStruct.new(name: "Philippines", value: 4),
      OpenStruct.new(name: "A galaxy far far away...", value: 5)
    ]
  %>
  <%= 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

1,205 entries across 1,205 versions & 2 rubygems

Version Path
playbook_ui-11.17.0 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.15.0.pre.alpha.dependencies1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.16.0.pre.alpha.paginationrails1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.16.0 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.16.0.pre.alpha.reactupgrade1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.15.0.pre.alpha.table1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.16.0.pre.alpha.pagination.rails1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.15.0 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.14.0 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.13.0.pre.alpha.fontawesome1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.13.0 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.12.1.pre.alpha.charts1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.12.1.pre.alpha.passphrase1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.12.1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.13.0.pre.alpha.fileupload1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.12.0 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.11.0.pre.alpha.paginate2 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.11.0.pre.alpha.dialog2 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.11.0.pre.alpha.paginate1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb
playbook_ui-11.11.0.pre.alpha.renderer1 app/pb_kits/playbook/pb_filter/docs/_filter_placement.html.erb