Sha256: 6fe1f6edede800740d0c8b789e33cef299a4cd6c291e8e4509df7a9daf0ae070

Contents?: true

Size: 1.25 KB

Versions: 100

Compression:

Stored size: 1.25 KB

Contents

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

Version data entries

100 entries across 100 versions & 1 rubygems

Version Path
playbook_ui-7.14.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.13.0.pre.alpha1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.13.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.12.1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.12.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.11.1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.11.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.11.0.pre.alpha1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.10.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.9.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.8.4 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.8.3 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.8.2 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.8.1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.8.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.7.0.pre.alpha1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.7.0 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.6.2.pre.alpha1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.6.2 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb
playbook_ui-7.6.1.pre.alpha1 app/pb_kits/playbook/pb_popover/docs/_popover_close_dark.html.erb