craue / CraueFormFlowBundle

Multi-step forms for your Symfony project.
MIT License
735 stars 118 forks source link

Add html attributes to buttons in flow #267

Open GWillmann opened 8 years ago

GWillmann commented 8 years ago

Hi there,

Is there a way to add html attributes to the flow buttons (next, reset...) ?

I would like to add google analytics events to the buttons in my case. For example :

<button type="submit" class="btn submit-btn btn-last" data-ga-event="{'eventCategory':'UI','eventAction':'click','eventLabel':'Template download'}">Next</button>

The data-ga-event part is what I would like to add...

Thanks !