Sha256: 2d799b3a153b86dc4b653af7c40d912e4ca871a7b71129acc2c1a417dc451013
Contents?: true
Size: 999 Bytes
Versions: 47
Compression:
Stored size: 999 Bytes
Contents
<%# Generic partial for placing a button that will load popup content via hotwire. Required params: - frame_id (the DOM ID of the turbo frame) Optional class: - src (the URL to load popup content from) - container_class (class attribute of the wrapper div. Defaults to "refine--inline-popup-container") - frame_class (class attribute of the turbo frame. Defaults to "refine--inline-popup") somewhere in your yield be sure to include a `data-action="click->refine--popup#show"` to trigger the the popup Popup can be hidden with `data-action="click->refine--popup#hide"` %> <% src ||= "" container_class ||= "refine--inline-popup-container" frame_class ||= "refine--inline-popup" is_open ||= false %> <%= tag.div class: container_class, data: {controller: "refine--popup", refine__popup_src_value: src, refine__is_open_value: is_open } do %> <%= yield %> <%= turbo_frame_tag frame_id, class: frame_class, data: {refine__popup_target: "frame"} %> <% end %>
Version data entries
47 entries across 36 versions & 1 rubygems