You are here

charts-block.html.twig in Charts 8.3

{% set library, height, width, height_units, width_units = 'charts_' ~ library ~ '/' ~ library, options.height, options.width, options.height_units, options.width_units %}
{{ attach_library("#{ library }") }}
<div {{ attributes }} {{ content_attributes }}
        style="{% if width is not empty %}width:{{ width }}{{ width_units }};{% endif %}{% if height is not empty %}height:{{ height }}{{ height_units }};{% endif %}"></div>

File

modules/charts_blocks/templates/charts-block.html.twig
View source
  1. {% set library, height, width, height_units, width_units = 'charts_' ~ library ~ '/' ~ library, options.height, options.width, options.height_units, options.width_units %}
  2. {{ attach_library("#{ library }") }}
  3. <div {{ attributes }} {{ content_attributes }}
  4. style="{% if width is not empty %}width:{{ width }}{{ width_units }};{% endif %}{% if height is not empty %}height:{{ height }}{{ height_units }};{% endif %}"></div>