[Html-widget] Patch for RadioGroup to support fieldsets

Ash Berlin ash at cpan.org
Thu Aug 3 15:06:31 CEST 2006


Michael Gray wrote:
> I'm still struggling in my mind with HTML::Widget archictecture relating 
> to full nested fieldset support.
>
> Meanwhile, this patch (which includes tests) provides an alternate 
> rendering behaviour for HTML::Widget::Element::RadioGroup, putting the 
> radio buttons into a <fieldset> with a <legend> for the label.  From the 
> docs:
>
>   =head2 group_container
>
>   Sets the container to be used for the radio group.  Currently
>   understands 'span' and 'fieldset'.  'span' is the default and
>   replicates the previous behaviour.  'fieldset' puts the radio buttons
>   into a fieldset with class 'radiogroup'.  group_container() can be
>   called as a class or instance method.
>
>   
> ------------------------------------------------------------------------
>
>   
Thanks for this - I might not get around to applying it until the 
weekend or next week.

Ash




More information about the Html-widget mailing list