You are here

clipboardjs.html.twig in Clipboard.js 8

Same filename and directory in other branches
  1. 2.0.x templates/clipboardjs.html.twig
{{ attach_library('clipboardjs/drupal') }}
<input id="{{ id }}" class="clipboardjs" value="{{ text }}" readonly="readonly" /><button 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 }}" />
</button>

File

templates/clipboardjs.html.twig
View source
  1. {{ attach_library('clipboardjs/drupal') }}
  2. <input id="{{ id }}" class="clipboardjs" value="{{ text }}" readonly="readonly" /><button 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. </button>