Sha256: 2876e3aa088835ee2fabb6325445c3b00f5498da739c7c8db87ecef2453b474e

Contents?: true

Size: 1.21 KB

Versions: 1870

Compression:

Stored size: 1.21 KB

Contents

<%= pb_rails("flex", props: {classname: "flex-container", spacing: "between"}) do %>
  <span>
    <%= pb_rails("button", props: { text: "Click Inside", variant: "secondary", id: "inside-popover-1" }) %>
    <%= pb_rails("popover", props: {
      close_on_click: "inside",
      trigger_element_id: "inside-popover-1",
      tooltip_id: "inside-tooltip-1",
      position: "bottom",
      offset: true
    }) do %>
      Click on me!
    <% end %>
  </span>
  <span>
    <%= pb_rails("button", props: { text: "Click Outside", variant: "secondary", id: "outside-popover-1" }) %>
    <%= pb_rails("popover", props: {
      close_on_click: "outside",
      trigger_element_id: "outside-popover-1",
      tooltip_id: "outside-tooltip-1",
      position: "left",
      offset: true
    }) do %>
        Click anywhere but me!
      <% end %>
  </span>
  <span>
    <%= pb_rails("button", props: {
      text: "Click Anywhere",
      variant: "secondary",
      id: "any-popover-1"
    }) %>
    <%= pb_rails("popover", props: {
      close_on_click: "any",
      trigger_element_id: "any-popover-1",
      tooltip_id: "any-tooltip-1",
      position: "top",
      offset: true
    }) do %>
      Click anything!
    <% end %>
  </span>
<% end %>

Version data entries

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

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