@ecl/twig-component-language-list
v3.13.0
Published
ECL Language List
Downloads
51
Keywords
Readme
ECL Language List component
npm package: @ecl/twig-component-language-list
npm install --save @ecl/twig-component-language-list
Parameters
- "items" (array) (default: [])
- "lang" (string) (default: '')
- "label" (string) (default: '')
- "path" (string) (default: '')
- "active" (boolean) (default: false)
- "non_eu_items" (array) (default: [])
- "lang" (string) (default: '')
- "label" (string) (default: '')
- "path" (string) (default: '')
- "active" (boolean) (default: false)
- "eu_category" (string) (default: '')
- "non_eu_category" (string) (default: '')
- "overlay" (boolean) (default: false)
- "data_lang_overlay" (string) (default: '')
- "icon_path" (string) (default: ''): file containing the svg icons
- "close_label" (string) (default: ''): label of close button
- "title" (string) (default: ''): title of the page
- "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'
Example:
{% include '@ecl/language-list/language-list.html.twig' with {
items: [
{ lang: 'bg', label: 'български', path: '/example' },
{ lang: 'es', label: 'español', path: '/example' },
...
],
close_label: 'Close',
overlay: false,
title: 'Select your language',
icon_path: '/path-to-the-icon-file',
extra_classes: 'my-extra-class-1 my-extra-class-2',
extra_attributes: [
{ name: 'data-test', value: 'data-test-value' },
{ name: 'data-test-1', value: 'data-test-value-1' }
]
} %}