Module: Tramway::Core::CopyToClipboardHelper

Included in:
ApplicationDecorator
Defined in:
app/helpers/tramway/core/copy_to_clipboard_helper.rb

Instance Method Summary collapse

Instance Method Details

#copy_to_clipboard(id) ⇒ Object



4
5
6
7
8
9
10
# File 'app/helpers/tramway/core/copy_to_clipboard_helper.rb', line 4

def copy_to_clipboard(id)
  button_tag class: 'btn btn-info clipboard-btn',
             data: { clipboard_action: 'copy', clipboard_target: "##{id}" },
             style: 'margin-left: 15px' do
    fa_icon 'copy'
  end
end