The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

ePortal::HTML::Tree - Draws a tree.

THIS MODULE IS UNDER CONSTRUCTION !!!

SYNOPSIS

This module is used to draw a tree of objects.

METHODS

self_url(cal_param, value)

Constructs self referencing URL removing all myself specific parameters. New parameters should be passed to this function to make them added to URL.

Returns URL with parameters.

draw()

Main entrance

_draw_item

ID of image TR%_###i

ID of hideable span TR%_###s

% is current level of tree starting with 1.

### - the ID of the item

add_item($id,$title,$parent,%parameters)

$parent is undef for root items.

Parameters are:

html - custom HTML code for the item

class, style

Returns $id or new generated id.

class('class_name',$depth)

Set default class name for items at depth $depth. Use individual properties in add_item() to override this defaults.

style('style_name',$depth)

Set default style name for items at depth $depth. Use individual properties in add_item() to override this defaults.

url('url',$depth)

Set default url for items at depth $depth. Use individual properties in add_item() to override this defaults.

expand_level($level)

Expand first $level levels. Collapse others.

expand_item($id,expand_children)

Expand tree to make the item visible. Collapse all others.

AUTHOR

Sergey Rusakov, <rusakov_sa@users.sourceforge.net>