signature-canvas.html.twig in SignatureField 1.x
Default theme implementation for the signature canvas.
Available variables:
- id: The canvas ID.
- width: The canvas width.
- height: The canvas height.
- attributes: HTML attributes.
See also
1 theme call to signature-canvas.html.twig
- Signature::processElement in src/
Element/ Signature.php - Processes a signature element.
File
templates/signature-canvas.html.twigView source
- {#
- /**
- * @file
- * Default theme implementation for the signature canvas.
- *
- * Available variables:
- * - id: The canvas ID.
- * - width: The canvas width.
- * - height: The canvas height.
- * - attributes: HTML attributes.
- *
- * @see template_preprocess_signature_canvas()
- *
- * @ingroup themeable
- */
- #}
- <canvas{{ attributes.addClass(['signature']) }}></canvas>
- <div class="clear-signature-link">
- <a href="#{{ id }}">{{ 'Clear signature'|t }}</a>
- </div>