Sha256: 4ab5523ed83881288fdfbd03460d9da13a3c73df88d5938613e2f5d31345f95d

Contents?: true

Size: 1.74 KB

Versions: 454

Compression:

Stored size: 1.74 KB

Contents

<%=
  pb_rails("filter", props: {
    id: "filter_popover_props",
    position: "top",
    filters: [
      { name: "name", value: "John Wick" },
      { name: "city", value: "San Francisco"}
    ],
    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 },
    ],
    template: "default",
    results: 1,
    popover_props: { width: "250px" },
  }) 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, like really far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far far 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: {max_width: "sm", 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

454 entries across 454 versions & 2 rubygems

Version Path
playbook_ui_docs-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY17445539 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR798datepickerturbo5537 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.11.1.pre.alpha.pbntr703collapsiblerowsrails5536 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.11.1.pre.alpha.PLAY1751pbcontenttagpt25529 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.11.1.pre.alpha.PBNTR7495495 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.12.0.pre.rc.11 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.12.0.pre.rc.10 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.12.0.pre.rc.9 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.12.0.pre.rc.8 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui_docs-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb
playbook_ui-14.12.0.pre.rc.7 app/pb_kits/playbook/pb_filter/docs/_filter_popover_props.html.erb