2.39.0 • Published 4 years ago
@ecl-twig/ec-component-file v2.39.0
ECL-Twig File component
npm package: @ecl-twig/ec-component-file
npm install --save @ecl-twig/ec-component-file
Parameters
- "icon" (object) (default: {}): object of type Icon; file type
- "variant" (string) (default: '') (thumbnail)
- "title" (string) (default: '')
- "description" (string) (default: '')
- "language" (string) (default: '')
- "meta" (string) (default: '')
- "detail_meta" (array) (default: []) Meta element for the thumbnail variant
- "download" (object) (default: {}): object of type Link
- "image" (object) (default: {}): image for the thumbnail variant
- "label" (object) (default: {}) label for the thumbnail variant
- "translation" (array) (default: []):
- "toggle" (object) (default: {}): object of type Button
- "items" (array) (default: []):
- "title" (string) (default: '')
- "meta" (string) (default: '')
- "lang" (string) (default: '')
- "download" (object) (default to the parent download property) object of type Link
- "description" (string) (default:'')
- "lists" (array) (default: []) Array of objects of type "description list"
- "variant" (optional) (taxonomy or horizontal)
- "items" (array)
- term (string)
- definition (string, array of strings or array of objects)
- "extra_classes" (optional) (string) (default: '') Extra classes (space separated)
- "extra_attributes" (optional) (array) (default: []) Extra attributes
- "name" (string) Attribute name, eg. 'data-test'
- "value" (string) Attribute value, eg: 'data-test-1'
- "_compliance_" (boolean) (default: false) Activates debug
Example:
{% include '@ecl-twig/ec-component-file/ecl-file.html.twig' with {
title: 'State of the Union 2018 brochure',
language: 'English',
meta: '(16.2 MB - PDF)',
icon_path: 'path/to/icons.svg',
icon: {
type: 'general',
name: 'copy',
size: '2xl',
path: 'path/to/icons.svg',
},
download: {
label: 'Download',
path: '/example',
icon: {
type: 'ui',
name: 'download',
size: 'fluid',
path: 'path/to/icons.svg',
},
},
translation: {
toggle: {
label: 'Other languages (3)',
icon: {
type: 'ui',
name: 'corner-arrow',
size: 'fluid',
transform: 'rotate-180',
},
},
description: 'Looking for another language which is not on the list? Find out why.',
items: [
{
title: 'български',
meta: '(15.7 MB - PDF)',
lang: 'bg',
},
...
],
},
} %}
2.39.0
4 years ago
2.38.0
4 years ago
2.37.0
4 years ago
2.36.0
4 years ago
2.35.2
4 years ago
2.35.1
5 years ago
2.35.0
5 years ago
2.34.0
5 years ago
2.33.2
5 years ago
2.33.1
5 years ago
2.33.0
5 years ago
2.32.0
5 years ago
2.31.1
5 years ago
2.31.0
5 years ago
2.30.0
5 years ago
2.29.0
5 years ago
2.28.1
5 years ago
2.28.0
5 years ago
2.27.0
5 years ago
2.26.0
5 years ago
2.25.1
5 years ago
2.25.0
5 years ago
2.24.0
5 years ago
2.23.0
5 years ago
2.22.1
5 years ago
2.22.0
5 years ago
2.21.0
5 years ago
2.19.0
6 years ago
2.18.0
6 years ago
2.17.3
6 years ago
2.17.0
6 years ago
2.16.1
6 years ago
2.15.1
6 years ago
2.15.0
6 years ago
2.11.2
6 years ago
2.11.1
6 years ago
2.11.0
6 years ago
2.9.1
6 years ago
2.9.0
6 years ago
2.8.0
6 years ago
2.7.0
6 years ago
2.3.2
6 years ago
2.3.1
6 years ago
2.3.0
6 years ago