[html-formfu] Different attributes for the first record in a
repeatable block
Carl Franks
fireartist at gmail.com
Thu Mar 26 14:15:34 GMT 2009
2009/3/26 Ascii King <tech at swattermatter.com>:
> I apologize for asking this twice, but I have not yet solved it.
> Is it possible to specify a different characteristic for the first record in
> a repeatable? I would like the class in the first repeatable block to be
> different from the rest of the class tags. Something like a
> first_record_attributes option or the header in a table.
Actually, there would be a way to achieve this without having to wrap
the repeatable in a div.
Add support for 'auto_id' to Repeatable.pm, so that this:
type: Repeatable
name: rep
auto_id: '%n_%r'
would output this:
<div id="rep_1">
</div>
<div id="rep_2">
</div>
Carl
More information about the HTML-FormFu
mailing list