[TASK] Additional Documentation for #61351
[Packages/TYPO3.CMS.git] / typo3 / sysext / core / Documentation / Changelog / master / Feature-61351-AddDataAttributeToFluidViewHelpers.rst
1 =========================================================
2 Feature: #61351 - Add data attribute to Fluid ViewHelpers
3 =========================================================
4
5 Description
6 ===========
7
8 Since HTML5 Elements can contain a generic data attribute,
9 Fluid provides for those elements the possibility to add
10 key-value pairs as array, which will be rendered as
11 `data-$key="$value"`.
12
13 :code: <f:form.textfield data="{foo: 'bar', baz: 'foos'}" />
14
15 Impact
16 ======
17
18 Generic data attributes do not need to be passed by the
19 `additionalAttributes` array anymore.