[TYPO3-mvc] Tab widget
Martin Kutschker
masi-no at spam-typo3.org
Fri Jan 15 10:15:16 CET 2010
Denyer Ec schrieb:
> On Fri, Jan 15, 2010 at 8:22 AM, Martin Kutschker
> <masi-no at spam-typo3.org> wrote:
>> <f:widget.tabs>
>> <f:widget.tab>
>> <f:widget.label>Tab I</f:widget.label>
>> <f:widget.content>
>> Foo bar
>> </f:widget.content>
>> </f:widget.tab>
>> <f:widget.tab>
>> <f:widget.label>Tab II</f:widget.label>
>> <f:widget.content>
>> Lorem Ipsum
>> </f:widget.content>
>> </f:widget.tab>
>> </f:widget.tabs>
>>
>> I wonder if we shouldn't use the same tags for the children in different containers. Otherwise we'll
>> get a multitude of tag names.
>
> Could the label be a property of <f.widget.tab> ?
Yes it could. Many FLUID elements have the option to express a part of them either as attribute or
child element. I used a child element to allow rich styling of the label. If it is only text (maybe
a restriction of the JS frameworks) then an attribute is sufficient.
Masi
More information about the TYPO3-project-typo3v4mvc
mailing list