NAME

HTML::Widget::Plugin::Radio - a widget for sets of radio buttons

VERSION

version 0.01

$Id: /my/icg/widget/trunk/lib/HTML/Widget/Plugin/Radio.pm 17026 2005-11-20T17:02:59.744239Z rjbs  $

DESCRIPTION

This plugin provides a radio button-set widget

METHODS

provided_widgets

This plugin provides the following widgets: radio

radio

This method returns a set of radio buttons.

In addition to the generic HTML::Widget::Plugin attributes, the following are valid arguments:

disabled

If true, this option indicates that the select widget can't be changed by the user.

options

This option must be a reference to an array of allowed values, each of which will get its own radio button.

value

If this argument is given, the option with this value will be pre-selected in the widget's initial state.

An exception will be thrown if more or less than one of the provided options has this value.

validate_value

This method checks whether the given value option is valid. See "radio" for an explanation of its default rules.

AUTHOR

Ricardo SIGNES <rjbs @ cpan.org>

COPYRIGHT

Copyright (C) 2005, Ricardo SIGNES. This is free software, released under the same terms as perl itself.