App::Widget - Family of web user interface widgets for the App::Context Framework, enabling development of complex UI's in a CGI, mod_perl, or other web context
use App::Widget;
* Signature: $handled = $self->handle_event($widget_name, $event, @args); * Param: widget_name string * Param: event string * Param: @args ARRAY * Return: $handled boolean * Throws: App::Exception * Since: 0.01 $handled = $widget->handle_event($widget_name, $event, @args);
* Signature: $content = $self->content(); * Param: void * Return: $content any * Throws: App::Exception * Since: 0.01 $content = $so->content(); if (ref($content)) { App::Reference->print($content); print "\n"; } else { print $content, "\n"; }
* Signature: $service->set_alternative_content($content, $extension); * Param: $content string * Param: $extension string * Return: void * Throws: App::Exception * Since: 0.01 Sample Usage: $service->set_alternative_content("red,green,blue\n1,2,3\n", "csv");
* Signature: $content_type = $service->content_type(); * Param: void * Return: $content_type string * Throws: App::Exception * Since: 0.01 Sample Usage: $content_type = $service->content_type();
* Signature: $text = $widget->user_event_name($event,@args); * Param: void * Return: $text text * Throws: App::Exception::Widget * Since: 0.01 Sample Usage: $name = $self->user_event_name("open","folder","1.1"); $html .= "<input type='submit' name='$name' value='Push Me'>\n";
* Signature: $text = $widget->callback_event_tag($event,@args); * Param: void * Return: $text text * Throws: App::Exception::Widget * Since: 0.01 Sample Usage: $html .= $self->callback_event_tag("open","folder","1.1");
To install App::Widget, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Widget
CPAN shell
perl -MCPAN -e shell install App::Widget
For more information on module installation, please visit the detailed CPAN module installation guide.