CGI-Widget
view release on metacpan or search on metacpan
Widget/HList.pm view on Meta::CPAN
print $hlist; #not very exciting
=head1 DESCRIPTION
CGI::Widget::HList provides look-and-feel for displaying a
CGI::Widget::HList::Node tree graph. For more information,
see L<CGI::Widget::HList::Node>.
This module is where image configurations, node rendering,
and connector rendering methods are stored in the form of
callbacks.
Check ex/ for example scripts
=head2 Constuctors
CGI::Widget::HList has only one constructor: new().
For convenient access to the CGI::Widget::HList::Node
constructor, you can call the node() method.
new() accepts the following parameters, with optional leading dash.
All parameters are optional.
Parameter Purpose
-------------------------------------------------------------------
root Root node of the tree to be rendered
Images to be used in the HTML rendering of the tree:
img_open,img_close,img_leaf,img_trunk,img_branch,img_corner,img_spacer
The rendering methods themselves. All are callbacks:
render_node,render_branch,render_spacer,render_trunk
The rendering methods default to sensible code that uses the (also
default) images. This can all be over-ridden. See Methods.
=head2 Methods
Interpreted in a scalar context, the object is overloaded to return
the html for the HList. Easy!
( run in 0.421 second using v1.01-cache-2.11-cpan-9b1e4054eb1 )