4.1.2 • Published 2 months ago
@ecl/twig-component-select v4.1.2
ECL Select component
npm package: @ecl/twig-component-select
npm install --save @ecl/twig-component-select
Parameters:
- "id" (string) (default: '')
- "options" (array) (default: []):
- "value" (string) (default: '')
- "label" (string) (default: '')
- "selected" (boolean) (default: false)
- "disabled" (boolean) (default: false)
- "disabled" (boolean) (default: false)
- "invalid" (boolean) (default: false)
- "invalid_icon" (object of type "icon") (default: {})
- "required" (boolean) (default: false)
- "name" (string) (default: '')
- "icon_size" (string) (default: 'xs')
- "toggle_label" (string) (default: 'Toggle dropdown')
- "width" (string) (default: '') Input width size (s, m or l)
- "icon_path" (string) (default: ''): file containing the svg icons
- "multiple" (bolean) (default: false): For the multiple select
- "multiple_placeholder" (string) (default: '') Placeholder for the multiple select
- "multiple_all_text" (string) (default: '') Text for the select all option
- "multiple_search_text" (string) (default: '') Text for the search box inside the multiple select
- "multiple_search_no_results_text" (string) (default: '') Label label when there is no result by searching for an option
- "extra_group_classes" (optional) (string) (default: '') Extra classes (space separated) for the select group
- "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/select/select.html.twig' with {
options: [
{
value: 1,
label: 'Belgium'
},
...
],
invalid: false,
invalid_text: 'Error message',
helper_text: 'Help message',
disabled: false,
id: 'example-id',
name: 'example-name',
width: 'm',
icon_path: '/static/icons.svg',
extra_classes: 'my-extra-class-1 my-extra-class-2',
extra_attributes: [
{ name: 'data-test-1', value: 'data-test-value-1' },
{ name: 'data-test-2', value: 'data-test-value-2' }
]
} %}
4.1.2
2 months ago
4.1.1
2 months ago
4.1.0
2 months ago
4.0.2
3 months ago
4.0.1
3 months ago
4.0.0
4 months ago
4.0.0-beta-3
4 months ago
4.0.0-beta-2
4 months ago
4.0.0-beta-1
4 months ago
3.13.0
5 months ago
3.12.1
6 months ago
3.12.0
6 months ago
3.9.1
11 months ago
3.9.0
11 months ago
3.8.5
11 months ago
3.11.0
8 months ago
3.10.0
9 months ago
3.11.1
7 months ago
3.8.4
1 year ago
3.8.3
1 year ago
3.8.2
1 year ago
3.8.1
1 year ago
3.8.0
1 year ago
3.7.1
1 year ago
3.7.0
1 year ago
3.6.0
2 years ago
3.5.1
2 years ago
3.4.2
2 years ago
3.5.0
2 years ago
3.4.0
2 years ago
3.3.4
2 years ago
3.3.3
2 years ago
3.4.1
2 years ago
3.3.1
2 years ago
3.3.0
2 years ago
3.3.2
2 years ago
3.2.4
2 years ago
3.2.2
2 years ago
3.2.1
2 years ago
3.2.0
2 years ago
3.2.3
2 years ago
3.1.3
3 years ago
3.1.2
3 years ago
3.1.1
3 years ago
3.1.0
3 years ago
3.0.3
3 years ago
3.0.2
3 years ago
3.0.1
3 years ago
3.0.0
3 years ago
3.0.0-beta.2
3 years ago
3.0.0-beta.1
3 years ago
3.0.0-alpha.1
3 years ago