4.7.2 • Published 10 months ago
@ecl/twig-component-form-group v4.7.2
ECL Form group component
npm package: @ecl/twig-component-form-group
npm install --save @ecl/twig-component-form-group
Parameters:
- "label" (string) (default: '') - Label for the form group
- "input" (object) (default: { ..., input_type: 'checkbox' || 'datepicker' || 'file' || 'radio' || 'range' || 'rating-field' || 'search' || 'select || 'text' || 'textarea' }) - Object of type input
- "disabled" (boolean) (default: false)
- "invalid" (boolean) (default: false)
- "invalid_icon" (object of type "icon") (default: {})
- "required" (boolean) (default: false)
- "label_aria_required" (string) (default: ''): aria text for the required field label
- "label_aria_optional" (string) (default: ''): aria text for the optional field label
- "extra_label_classes" (optional) (string) (default: '') Extra classes for the label
- "extra_attributes" (optional) (array) (default: []) Extra attributes
- "name" (string) Attribute name, eg. 'data-test'
- "value" (string) Attribute value, eg: 'data-test-1'
Blocks:
- "helper_text"
- "invalid_text"
- "required_text"
- "optional_text"
- "label"
Example:
{% include '@ecl/form-group/form-group.html.twig' with {
label: 'my file upload label',
helper_text: 'this is a helper text',
invalid_text: 'this is an invalid text',
required_text: '*',
optional_text: '(optional)',
label_aria_required: 'required',
label_aria_optional: 'optional',
input: {
input_type: 'file',
multiple: false,
button_choose_label: "Choose file",
button_replace_label: "Replace file",
extra_attributes: [
{
name: 'data-test',
value : 'data-test-1'
},
],
}
} %}
4.7.2
10 months ago
4.8.1
10 months ago
4.7.1
10 months ago
4.8.0
10 months ago
4.6.3
12 months ago
4.6.2
12 months ago
4.6.5
11 months ago
4.6.4
11 months ago
4.5.0
1 year ago
4.2.3
1 year ago
4.4.0
1 year ago
4.2.2
1 year ago
4.7.0
11 months ago
4.6.1
12 months ago
4.6.0
1 year ago
4.3.0
1 year ago
4.2.1
1 year ago
4.2.0
1 year ago
4.1.2
1 year ago
4.1.1
1 year ago
4.1.0
1 year ago
4.0.2
1 year ago
4.0.1
1 year ago
4.0.0
1 year ago
4.0.0-beta-3
1 year ago
4.0.0-beta-2
2 years ago
4.0.0-beta-1
2 years ago