logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

HTML::Widget::Element::Button - Button Element

Author

       Marcus Ramberg, "mramberg@cpan.org"

Description

       Button Element.

License

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

perl v5.36.0                                       2023-08-10                 HTML::Widget::Element::Button(3pm)

Methods

newvaluelabel
       The value of this Button element. Is also used by the browser as the button label.

       "label" is an alias for "value".

   content
       If set, the element will use a "button" tag rather than an "input" tag.

       The value of "content" will be used between the "button" tags, unescaped.  This means that any html
       markup may be used to display the button.

   type
       Valid values are "button", "submit", "reset" and "image".

   src
       If set, the element will be rendered as an image button, using this url as the image.

       Automatically sets "type" to "image".

   retain_default
       If true, overrides the default behaviour, so that after a field is missing from the form submission, the
       xml output will contain the default value, rather than be empty.

   rendercontainerize

Name

       HTML::Widget::Element::Button - Button Element

See Also

       HTML::Widget::Element

Synopsis

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

See Also