You are here

clipboardjs.html.twig in Clipboard.js 2.0.x

Same filename and directory in other branches
  1. 8 templates/clipboardjs.html.twig
{{ attach_library('clipboardjs/drupal') }}
<input id="{{ id }}" type="text" class="clipboardjs" value="{{ text }}" readonly="readonly" /><a class="clipboardjs-button" data-clipboard-alert="{{ alert_style }}" data-clipboard-alert-text="{{ alert_text }}" data-clipboard-target="#{{ id }}">
  <img src="{{ module_path }}/images/clippy.svg" alt="{{ label }}" height="{{ height }}" width="{{ width }}" />
</a>

File

templates/clipboardjs.html.twig
View source
  1. {{ attach_library('clipboardjs/drupal') }}
  2. <input id="{{ id }}" type="text" class="clipboardjs" value="{{ text }}" readonly="readonly" /><a class="clipboardjs-button" data-clipboard-alert="{{ alert_style }}" data-clipboard-alert-text="{{ alert_text }}" data-clipboard-target="#{{ id }}">
  3. <img src="{{ module_path }}/images/clippy.svg" alt="{{ label }}" height="{{ height }}" width="{{ width }}" />
  4. </a>