[Flow] data attributes in Link ViewHelper

Christian Loock chl at vkf-renzel.de
Fri Aug 30 09:47:25 CEST 2013


Oh nice. Thanks a lot!

Am 30.08.2013 09:47, schrieb Stephan Herold | heroldhansen GbR:
> Hi Christian,
>
> you had to use "additionalAttributes" (
> http://docs.typo3.org/flow/TYPO3FlowDocumentation/TheDefinitiveGuide/PartV/FluidViewHelperReference.html#f-link-action
> ):
>
> <f:link.action controller="{tab.controller}" package="{tab.package}"
> action="{tab.action}" additionalAttributes="{data-toggle: 'tab'}">
>
> Cheers
>
> Stephan
>
>
> 2013/8/30 Christian Loock <chl at vkf-renzel.de>
>
>> Hello,
>>
>> it seems like it is not possible to use data atrributes with the Link
>> ViewHelper:
>>
>> <f:link.action controller="{tab.controller}" package="{tab.package}"
>> action="{tab.action}" data-toggle="tab">
>>
>> This would lead to an Exception like *#1237823695: Argument "data-toggle"
>> was not registered
>>
>> *However, often when you work with JavaScript (in this caste Twitter
>> Bootstraps Tab component), data attributes are a required and convinient
>> method to store arbitrary data with dom elements.
>>
>> Is it planned to add support for data attributes in Links and is there a
>> known workarround to get this to work?
>>
>> Greetings,
>>
>> Christian
>> ______________________________**_________________
>> Flow mailing list
>> Flow at lists.typo3.org
>> http://lists.typo3.org/cgi-**bin/mailman/listinfo/flow<http://lists.typo3.org/cgi-bin/mailman/listinfo/flow>
>>
> _______________________________________________
> Flow mailing list
> Flow at lists.typo3.org
> http://lists.typo3.org/cgi-bin/mailman/listinfo/flow



More information about the Flow mailing list