NAME
HTML::Template::LZE::TabWidget.pm
SYNOPSIS
use HTML::Template::LZE::TabWidget;
my $tabwidget = new HTML::Template::LZE::TabWidget(\%patmeter);
my %parameter = (
style => 'Crystal',
path => "/srv/www/cgi-bin/templates",
anchors => [
{
text => 'HTML::Template::LZE::TabWidget ',
href => "$ENV{SCRIPT_NAME}",
class => 'currentLink',
src => 'link.png'
},
{
text => 'Next',
class => 'links',
},
{
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();
FO Syntax
=head3 function sets
Here is a list of the function sets you can import:
:all
DESCRIPTION
You also need somejs and css file.
Example:
print start_html(
-title => 'TabWidget',
-script => [
{
-type => 'text/javascript',
-src => '/javascript/content.js'
},
{
-type => 'text/javascript',
-src => '/javascript/tabwidget.js'
},
],
-style => '/style/Crystal/tabwidget.css',
);
Changes
new
my $tb = new HTML::Template::LZE::TabWidget(%parameter);
initTabWidget
initTabWidget(\%patmeter);
Menu()
Menu(\%patmeter);
tabwidgetHeader()
tabwidgetHeader
tabwidgetFooter()
tabwidgetFooter
private
action()
my %reply = (
title => 'title',
src => 'reply',
href => "/reply.html",
text => 'Your Text'
);
action(\%reply);
getSelf
HTML::Template::LZE::TabWidget Module use a Lincoln loader like class system.
if the first parameter is a HTML::Template::LZE::TabWidget object (oo syntax ) this function returns the given parameters.
or the first parameter it is not a object referenz (fo syntax) it create a new HTML::Template::LZE::TabWidget object,
return it as first value and @_ as the second value .
my ($self, @p) = getSelf(@_);
SEE ALSO
http://www.lindnerei.de,
AUTHOR
Dirk Lindner <lindnerei@o2online.de>
COPYRIGHT AND LICENSE
Copyright (C) 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.