[Html-widget] More POD patches

Ash Berlin ash at cpan.org
Mon Jul 10 19:08:59 CEST 2006


A. Pagaltzis wrote:
> Hi,
>
> I just wasted half an hour trying to puzzle out the docs until I
> decided to just read the code… hopefully these will save someone
> else some time.
>
> Sorry for the haphazard patch format, I’m in too much of a hurry
> right now to do it more neatly.
>
> Regards,
>   
> ------------------------------------------------------------------------
>
> --- Widget.pm.orig	2006-07-10 18:38:27.000000000 +0200
> +++ Widget.pm	2006-07-10 18:39:56.000000000 +0200
> @@ -289,12 +289,10 @@
>      my $e = $widget->element( 'RadioGroup', 'name', ['foo', 'bar', 'baz'] );
>      $e->comment('(Required)');
>      $e->label('Foo');
> -    $e->checked('bar');
>      $e->value('bar');
>  
>  This is a shortcut to add multiple radio buttons with the same name at the
> -same time. See above. (Note that the C<checked> method has a different meaning
> -here).
> +same time. See above.
>  
>  =item L<HTML::Widget::Element::Reset>
>  
>   
> ------------------------------------------------------------------------
>
> --- RadioGroup.pm.orig	2006-07-10 18:44:55.000000000 +0200
> +++ RadioGroup.pm	2006-07-10 18:45:48.000000000 +0200
> @@ -51,9 +51,9 @@
>  A list of options in key => value format. Each key is the unique id of an
>  option tag, and its corresponding value is the text displayed in the element.
>  
> -=head2 selected
> +=head2 value
>  
> -A list of keys (unique option ids) which will be pre-set to "selected".
> +A key (unique option id) which will be pre-set to "checked".
>  
>  =cut
>  
>   
> ------------------------------------------------------------------------
>
> _______________________________________________
> Html-widget mailing list
> Html-widget at lists.rawmode.org
> http://lists.rawmode.org/cgi-bin/mailman/listinfo/html-widget
>   
Done, also tidied up POD of RadioGroup.pm - looks like it still had some 
stuff left over from when it was copied from Select.pm

Ash





More information about the Html-widget mailing list