Catalyst::Plugin::HTML::Widget - HTML Widget And Validation Framework
use Catalyst qw/HTML::Widget; $c->widget('foo')->method('get')->action('/foo/action'); $c->widget('foo')->element( 'Textfield', 'age' )->label('Age')->size(3); $c->widget('foo')->element( 'Textfield', 'name' )->label('Name')->size(60); $c->widget('foo')->element( 'Submit', 'ok' )->value('OK'); $c->widget('foo')->constraint( 'Integer', 'age' )->message('No integer.'); $c->widget('foo')->constraint( 'All', 'age', 'name' ) ->message('Missing value.'); $c->widget( HTML::Widget->new('foo') ); $c->widget('foo')->indicator('some_field'); my $result = $c->widget('foo')->process; my $result = $c->widget('foo')->process($query); my $result = $c->widget_result('foo'); # with query params
HTML Widget And Validation Framework.
Returns a HTML::Widget. If no object exists, it will be created on the fly. The widget name defaults to _widget.
_widget
Returns a HTML::Widget::Result object, processed with query and upload parameters.
Catalyst, HTML::Widget
Sebastian Riedel, sri@oook.de
sri@oook.de
This library is free software, you can redistribute it and/or modify it under the same terms as Perl itself.
To install Catalyst::Plugin::HTML::Widget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::HTML::Widget
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::HTML::Widget
For more information on module installation, please visit the detailed CPAN module installation guide.