Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to add custom HTML attributes on buttons #298

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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

@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