Skip to content

Conversation

@Florian-B
Copy link

@Florian-B Florian-B commented Oct 20, 2017

This feature allows to add custom attributes on buttons (very useful for tracking or javascript).

{% include '@CraueFormFlow/FormFlow/buttons.html.twig' with {
	craue_formflow_button_attr_finish: {'data-foo': 'bar'},
	craue_formflow_button_attr_reset: {'data-foo': 'bar', 'data-bar': 'foo'},
} %}

Will add data-foo="bar" attribute for finish button and data-foo="bar" data-bar="foo" attributes for reset button

See: #267

@Florian-B Florian-B force-pushed the allow-custom-attr-on-buttons branch from c440605 to 1931f1b Compare October 20, 2017 10:15
@Florian-B Florian-B force-pushed the allow-custom-attr-on-buttons branch from 1931f1b to 93f2a04 Compare October 20, 2017 10:29
@coveralls
Copy link

Coverage Status

Changes Unknown when pulling c440605 on Florian-B:allow-custom-attr-on-buttons into ** on craue:master**.

1 similar comment
@coveralls
Copy link

coveralls commented Oct 20, 2017

Coverage Status

Changes Unknown when pulling c440605 on Florian-B:allow-custom-attr-on-buttons into ** on craue:master**.

@coveralls
Copy link

coveralls commented Oct 20, 2017

Coverage Status

Changes Unknown when pulling 93f2a04 on Florian-B:allow-custom-attr-on-buttons into ** on craue:master**.

@coveralls
Copy link

coveralls commented Oct 20, 2017

Coverage Status

Changes Unknown when pulling 93f2a04 on Florian-B:allow-custom-attr-on-buttons into ** on craue:master**.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants