Feature #35748

Add generic data-* attribute

Added by Julian Wachholz about 8 years ago. Updated over 6 years ago.

Status:
Resolved
Priority:
Could have
Category:
ViewHelpers
Target version:
-
Start date:
2012-04-06
Due date:
% Done:

100%

Has patch:
Yes

Description

All elements in HTML5 can have any number of data-* attributes.
This should be made easier to use than with the additionalAttributes property.

Example:

<f:link.action data="{loading-text: 'loading...'}" action="create">create a new foo</f:link.action>

Related issues

Related to TYPO3.Fluid - Bug #38592: attributes with dashes lead to wrong exception message Resolved 2012-07-03
Related to TYPO3 Core - Feature #61171: Add generic data-* attribute Closed 2014-08-25
Related to TYPO3 Core - Feature #61351: Add generic data-* attribute Closed 2014-09-04
Duplicated by TYPO3.Fluid - Feature #49305: Support for Data Attributes in tag-based ViewHelpers Closed 2013-06-21

Associated revisions

Revision 8f7bd506 (diff)
Added by Julian Wachholz over 6 years ago

[FEATURE] Add generic data-* attribute

All elements in HTML5 can have any number of data-* attributes.
This additional array attribute on tag bases viewhelpers makes
it easier to add several data-* attributes to them::

&lt;f:form.textfield data="{foo: 'bar', baz: 'foos'}" /&gt;

Will render::

&lt;input data-foo="bar" data-baz="foos" ...

Change-Id: I3187e9a8d2c97f0518893a633bc773bacb624ca5
Resolves: #35748
Releases: master

History

#1 Updated by Gerrit Code Review about 8 years ago

  • Status changed from New to Under Review

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10184

#2 Updated by Gerrit Code Review almost 8 years ago

Patch set 1 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/11803

#3 Updated by Gerrit Code Review almost 8 years ago

Patch set 2 for branch master has been pushed to the review server.
It is available at http://review.typo3.org/10184

#4 Updated by Bastian Waidelich over 6 years ago

  • Assignee set to Bastian Waidelich

No feedback, taking over

#5 Updated by Gerrit Code Review over 6 years ago

Patch set 3 for branch master of project Packages/TYPO3.Fluid has been pushed to the review server.
It is available at https://review.typo3.org/10184

#6 Updated by Julian Wachholz over 6 years ago

  • Status changed from Under Review to Resolved

Also available in: Atom PDF