HTML::Widget::Element::Reset - Reset Element


HTML-Widget documentation Contained in the HTML-Widget distribution.

Index


Code Index:

NAME

Top

HTML::Widget::Element::Reset - Reset Element

SYNOPSIS

Top

    $e = $widget->element( 'Reset', 'foo' );
    $e->value('bar');

DESCRIPTION

Top

Reset button element.

Inherits all methods from HTML::Widget::Element::Button.

Automatically sets type to reset.

METHODS

Top

new

label

value

Sets the form field value. Is also used by the browser as the button label.

If not set, the browser will usually display the label as "Reset".

label is an alias for value.

SEE ALSO

Top

HTML::Widget::Element::Button, HTML::Widget::Element

AUTHOR

Top

Sebastian Riedel, sri@oook.de

LICENSE

Top

This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.


HTML-Widget documentation Contained in the HTML-Widget distribution.
package HTML::Widget::Element::Reset;

use warnings;
use strict;
use base 'HTML::Widget::Element::Button';
use NEXT;

sub new {
    return shift->NEXT::new(@_)->type('reset');
}

1;