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

Version Path
renalware-core-2.1.1 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.1.0 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.167 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.166 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.165 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.164 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.163 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.162 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.161 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.160 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.159 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.158 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.157 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.156 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.155 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.153 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.152 app/helpers/renalware/clipboard_helper.rb
renalware-core-2.0.151 app/helpers/renalware/clipboard_helper.rb