Sha256: d2717b6f3c96591d7c9c025325d8c6f7d45c23244fbdf4703440ad858bfb6315

Contents?: true

Size: 1.11 KB

Versions: 350

Compression:

Stored size: 1.11 KB

Contents

<%=
  pb_rails("filter", props: {
    min_width: "360px",
    id: "fo",
    filters: [
      { name: "name", value: "John Wick" }
    ],
    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: "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

350 entries across 350 versions & 2 rubygems

Version Path
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4316 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.7.0.pre.rc.7 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.7.0.pre.rc.7 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4312 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4312 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4305 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4305 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.7.0.pre.rc.6 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.7.0.pre.rc.6 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4304 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4304 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4303 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.6.2.pre.alpha.PBNTR633dropdownavailablepropstable4303 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.6.2.pre.alpha.PBNTR576tooltiptruncatedformpills4296 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PLAY1550lazysizesupgrade4295 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.6.2.pre.alpha.PLAY1550lazysizesupgrade4295 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4274 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-14.6.2.pre.alpha.PLAY1485selectablecardoverflowoutlinebug4274 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui_docs-14.6.2.pre.alpha.PLAY1607dependencydisplayymlupdate4271 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb