Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    Tree::Simple::View::HTML 0.17

    Download button

    No screenshots available
    Downloads: 270  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Stevan Little | More programs
    Perl Artistic License / FREE
    August 21st, 2007, 08:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    Tree::Simple::View::HTML description

    A Perl class for viewing Tree::Simple hierarchies in HTML.

    Tree::Simple::View::HTML is a Perl class for viewing Tree::Simple hierarchies in HTML.

    SYNOPSIS

    use Tree::Simple::View::HTML;

    ## a simple example
    # use the defaults (an unordered list with no CSS)
    my $tree_view = Tree::Simple::View::HTML->new($tree);

    ## more complex examples

    # use the CSS properties
    my $tree_view = Tree::Simple::View::HTML->new($tree => (
    list_type => "ordered",
    list_css => "list-style: circle;",
    list_item_css => "font-family: courier;",
    expanded_item_css => "font-family: courier; font-weight: bold",
    ));

    # use the CSS classes
    my $tree_view = Tree::Simple::View::HTML->new($tree => (
    list_css_class => "myListClass",
    list_item_css_class => "myListItemClass",
    expanded_item_css_class => "myExpandedListItemClass",
    ));

    # mix the CSS properties and CSS classes
    my $tree_view = Tree::Simple::View::HTML->new($tree => (
    list_css => "list-style: circle;",
    list_item_css => "font-family: courier;",
    expanded_item_css_class => "myExpandedListItemClass",
    node_formatter => sub {
    my ($tree) = @_;
    return "" . $tree->getNodeValue()->description() . "";
    }
    ));


    # print out the tree fully expanded
    print $tree_view->expandAll();

    # print out the tree expanded along a given path (see below for details)
    print $tree_view->expandPath("Root", "Child", "GrandChild");


    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Tree::Simple hierarchies | tree viewer | Perl module | Tree | hierarchies | Perl



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM