Sha256: 7555077c21500e750d35ebc10aa249ce47d6e1de1dad59628b58d253c0ecd427
Contents?: true
Size: 434 Bytes
Versions: 18
Compression:
Stored size: 434 Bytes
Contents
# frozen_string_literal: true module Renalware module ClipboardHelper # A helper to create a clipboard.js button https://clipboardjs.com/ def clipboard_button_for(target, width: "13rem") tag.button data: { "clipboard-action" => "copy", "clipboard-target" => target }, class: "button compact low-key clipboard-btn" do image_tag "renalware/clippy.svg", width: width end end end end
Version data entries
18 entries across 18 versions & 1 rubygems