The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

HTML::Widget::Plugin - base class for HTML widgets

VERSION

version 0.069

DESCRIPTION

This class provides a simple way to write plugins for HTML::Widget::Factory.

METHODS

rewrite_arg

 $arg = $plugin->rewrite_arg($arg);

This method returns a reference to a hash of arguments, rewriting the given hash reference to place arguments that are intended to become element attributes into the attr parameter.

It moves attributes listed in the results of the attribute_args method.

attribute_args

This method returns a list of argument names, the values of which should be used as HTML element attributes.

The default implementation climbs the plugin's inheritance tree, calling _attribute_args and pushing all the results onto a list from which unique results are then returned.

boolean_args

This method returns a list of argument names, the values of which should be treated as booleans.

The default implementation climbs the plugin's inheritance tree, calling _boolean_args and pushing all the results onto a list from which unique results are then returned.

provided_widgets

This method should be implemented by any plugin. It returns a list of method names which should be imported from the plugin into HTML::Widget::Factory.

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.