package HTML::Widget::Element::Button;
use warnings;
use strict;
use base 'HTML::Widget::Element';
use NEXT;
__PACKAGE__->mk_accessors(
qw/value content type _src height width
retain_default/
);
# alias
*label = \&value;
=head1 NAME
HTML::Widget::Element::Button - Button Element
=head1 SYNOPSIS
$e = $widget->element( 'Button', 'foo' );
$e->value('bar');
=head1 DESCRIPTION
Button Element.
=head1 METHODS
=head2 new
=cut
sub new {
return shift->NEXT::new(@_)->type('button');
}
=head2 value
=head2 label
The value of this Button element. Is also used by the browser as the
button label.
L is an alias for L.
=head2 content
If set, the element will use a C