You are here

views-view-charts.html.twig in Charts 8.3

Same filename and directory in other branches
  1. 8 templates/views-view-charts.html.twig
{% set library, height, width, height_units, width_units = 'charts_' ~ chart_type ~ '/' ~ chart_type, 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

templates/views-view-charts.html.twig
View source
  1. {% set library, height, width, height_units, width_units = 'charts_' ~ chart_type ~ '/' ~ chart_type, 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>