Sha256: 175986d39e4c80d437e40deb02116023c45821d9667f04848408bb1aa13d9fdf
Contents?: true
Size: 686 Bytes
Versions: 2
Compression:
Stored size: 686 Bytes
Contents
<%= content_tag(:div, id: object.id, data: object.data, class: object.classname) do %> <div class="popover_tooltip" id="<%= object.tooltip_id %>" role="tooltip"> <%= pb_rails("card", props: {shadow: "deeper"}) do %> <%= capture(&object.children) %> <% end %> </div> <% end %> <%# Javascript for the Popover Instance %> <% content_for :pb_js do %> <%= javascript_tag do %> window.addEventListener('DOMContentLoaded', function() { new Popover( "#<%= object.trigger_element_id %>", "#<%= object.tooltip_id %>", "<%= object.position %>", <%= object.popover_offset %>, ) }) <% end %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
playbook_ui-4.2.0 | app/pb_kits/playbook/pb_popover/_popover.html.erb |
playbook_ui-4.1.2 | app/pb_kits/playbook/pb_popover/_popover.html.erb |