NAME

HTML::TabWidget - simple Html TabWidget

SYNOPSIS

use HTML::TabWidget;

my $tabwidget = new HTML::TabWidget(\%patmeter);

my %parameter = (

                  style => 'Crystal',

                  path => "/srv/www/cgi-bin/templates",

                  anchors => [

                          {

                          text  => 'HTML::TabWidget ',

                          href  => "$ENV{SCRIPT_NAME}",

                          class => 'currentLink',

                          src   => 'link.png'

                          },

                          {

                          text => 'Next',

                          class => 'link',

                          },

                          {

                          text => 'Dynamic Tab',

                          title => 'per default it is the text'

                          href  => 'javascript:displayhidden()',

                          class => 'javaScriptLink',

                          }

                  ],

);

print $tabwidget->tabwidgetHeader();

$tabwidget->Menu();

print "your content";

print $tabwidget->tabwidgetFooter();

You also need some js and css file.

Example:

print start_html(

-title => 'TabWidget',

-script => [

        {

        -type  => 'text/javascript',

        -src   => '/javascript/tabwidget.js'

        },

        ],

        -style => '/style/Crystal/tabwidget.css',

);

function sets

Here is a list of the function sets you can import:

:all initTabWidget tabwidgetHeader Menu tabwidgetFooter

new

my $tb = new HTML::TabWidget(%parameter);

initTabWidget

initTabWidget(\%patmeter);
Menu(\%patmeter);

tabwidgetHeader()

tabwidgetHeader

tabwidgetFooter()

tabwidgetFooter

private

action()

my %reply = (

      title => 'title',

      src => 'reply',

      href => "/reply.html",

      text => 'Your Text'

);

action(\%reply);

getSelf

SEE ALSO

CGI::CMS Template::Quick

http://www.lindnerei.de, http://lindnerei.sourceforege.net,

Example:

http://lindnerei.sourceforge.net/cgi-bin/tabwidget.pl

AUTHOR

Dirk Lindner <lze@cpan.org>

LICENSE

Copyright (C) 2006- 2008 by Hr. Dirk Lindner

This program is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.