Sha256: 8855cdabfea482998be20a3d274f82c6e62c2d6d214d446901d34c877ad92d52

Contents?: true

Size: 1.26 KB

Versions: 207

Compression:

Stored size: 1.26 KB

Contents

<%=
  pb_rails("filter", props: {
    id: "fo",
    filters: [
      { name: "name", value: "John Wick" }
    ],
    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-11.7.0.pre.alpha.table1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.7.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.6.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.5.0.pre.alpha.fontawesome app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.7.0.pre.alpha.pre.guagechart1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.6.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.5.0.pre.alpha.datepicker1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.6.0.pre.alpha.rubocopperf1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.6.1.pre.alpha.rubocop.pre.performance1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.5.0.pre.alpha.pre.rubocop app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.6.0.pre.alpha.momenttz1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.5.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.4.0.pre.alpha.rubytheme2 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.4.0.pre.alpha.rubytheme1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.4.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.3.0.pre.alpha2 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.3.0.pre.alpha1 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.3.0 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.2.7 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb
playbook_ui-11.2.6 app/pb_kits/playbook/pb_filter/docs/_filter_only.html.erb