Ricardo SIGNES > HTML-Widget-Factory-0.082 > HTML::Widget::Plugin::Checkbox

Download:
HTML-Widget-Factory-0.082.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.082   Source  

NAME ^

HTML::Widget::Plugin::Checkbox - it's either [ ] or [x]

SYNOPSIS ^

  $widget_factory->checkbox({
    id      => 'checkbox-id',    # also used as default for control name
    value   => 'checkbox-value', # -not- the "am I checked?" setting
    checked => $true_or_false,
  });

DESCRIPTION ^

This plugin provides a widget for boolean checkbox widgets.

METHODS ^

provided_widgets

This plugin provides the following widgets: checkbox

checkbox

This method returns a checkbox widget.

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

checked

This is the widget's initial state. If true, the checkbox is checked. Otherwise, it is not.

value

This is the value for the checkbox, not to be confused with whether or not it is checked.

AUTHOR ^

Ricardo SIGNES <rjbs @ cpan.org>

COPYRIGHT ^

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

syntax highlighting: