Why not adopt me?
NAME
HTML::Widget::Plugin::Button - a button for clicking
SYNOPSIS
$widget_factory->button({
text => "submit & continue",
type => 'submit',
});
...or...
$widget_factory->button({
html => "reset <em>all</em> content",
type => 'reset',
});
DESCRIPTION
This plugin provides a basic button widget.
METHODS
provided_widgets
This plugin provides the following widgets: input
button
This method returns simple button element.
In addition to the generic HTML::Widget::Plugin attributes, the following are valid arguments:
- text
- html
-
One of these options may be provided. If text is provided, it is used as the content of the button, after being entity encoded. If html is provided, it is used as the content of the button with no encoding performed.
- type
-
This is the type of input button to be created. Valid types are button, submit, and reset. The default is button.
- value
-
This is the widget's initial value.
build
my $widget = $class->build($factory, $arg);
This method does the actual construction of the input based on the args collected by the widget-constructing method. It is primarily here for subclasses to exploit.
AUTHOR
Ricardo SIGNES <rjbs @ cpan.org
>
COPYRIGHT
Copyright (C) 2007, Ricardo SIGNES. This is free software, released under the same terms as perl itself.