Sha256: 87061fcc0b934160c195684ee808c96b33b3c972e83190930809fde7d30af595

Contents?: true

Size: 1.42 KB

Versions: 598

Compression:

Stored size: 1.42 KB

Contents

<%=
  pb_rails("filter", props: {
    min_width: "360px",
    id: "2",
    filters: [
      { name: "name", value: "John Wick" }
    ],
    sort_menu: [
      { item: "Popularity", link: "?q[sorts]=managers_popularity+asc", active: true, direction: "desc" },
      { item: "Mananger's Title", link: "?q[sorts]=managers_title+asc", active: false },
      { item: "Manager's Name", link: "?q[sorts]=managers_name+asc", active: false },
    ],
    results: 546,
    template: "single"
  }) 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: "pb_rails('icon', props: { icon: 'spinner', spin: true, fixed_width: true })Searching...".html_safe
      },}%>
      <%= action.button props: { type: "reset", text: "Clear", variant: "secondary" } %>
    <% end %>
  <% end %>
<% end %>

Version data entries

598 entries across 598 versions & 2 rubygems

Version Path
playbook_ui-14.11.0.pre.rc.17 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.11.0 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.11.0.pre.rc.16 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.10.0.pre.alpha.play16825301 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.11.0.pre.rc.15 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.11.0.pre.rc.14 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.11.0.pre.rc.13 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.11.0.pre.rc.12 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.10.0.pre.alpha.PLAY1774timelinelabelstepspacing5274 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.10.0.pre.alpha.play1465attempt25272 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui_docs-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb
playbook_ui-14.10.0.pre.alpha.play16825244 app/pb_kits/playbook/pb_filter/docs/_filter_single.html.erb