File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -295,6 +295,23 @@ Example:
295295 } %}
296296` ` `
297297
298+ Always in the same way, you can add custom HTML attributes :
299+
300+ - ` craue_formflow_button_attr_last` for either the __next__ or __finish__ button
301+ - ` craue_formflow_button_attr_finish` for the __finish__ button
302+ - ` craue_formflow_button_attr_next` for the __next__ button
303+ - ` craue_formflow_button_attr_back` for the __back__ button
304+ - ` craue_formflow_button_attr_reset` for the __reset__ button
305+
306+ Example :
307+
308+ ` ` ` twig
309+ {% include '@CraueFormFlow/FormFlow/buttons.html.twig' with {
310+ craue_formflow_button_attr_finish: {'data-foo': 'bar'},
311+ craue_formflow_button_attr_reset: {'data-foo': 'bar', 'data-bar': 'foo'},
312+ } %}
313+ ` ` `
314+
298315You can also remove the reset button by setting `craue_formflow_button_render_reset` to `false`.
299316
300317# # Create an action
You can’t perform that action at this time.
0 commit comments