[html-formfu] Attributes in Checkboxgroup
Ascii King
tech at swattermatter.com
Wed Feb 25 13:27:39 GMT 2009
Thanks, Carl. It was a big assumption. This solution is a big help.
Carl Franks wrote:
> 2009/2/23 Ascii King <tech at swattermatter.com>:
>
>> I have created a Checkboxgroup, but I cannot figure out how to place a class
>> in the SPAN tag that surrounds each option. The tags breakdown like this:
>> <div>
>> <span>
>> <span class="HowDoIGetHERE?">
>> <input>
>> <label>
>> </span>
>> </span>
>> </div>
>>
>
> [snip]
>
>
>> I know it
>> can be done.
>>
>
> That's quite an assumption!
> However, this was quite an easy one to fix, so if you update to svn r1321
> you can now pass a 'container_attributes' hashref for any item.
>
> options:
> - value: 1
> label: Breakfast
> container_attributes:
> class: item-wrapper-class
>
> Cheers,
> Carl
>
> _______________________________________________
> HTML-FormFu mailing list
> HTML-FormFu at lists.scsys.co.uk
> http://lists.scsys.co.uk/cgi-bin/mailman/listinfo/html-formfu
>
>
More information about the HTML-FormFu
mailing list