JQuery::ClickMenu - A clickable menu
JQuery::ClickMenu is a desktop style menu.
use JQuery; use JQuery::ClickMenu ; my $list =<<EOD; File(f) Menu1 sep(s) Menu2 Options(f) Menu1 sep(s) Menu2 SubMenu(f) Submenu1 Submenu2 EOD my $clickmenu = JQuery::ClickMenu->new(list => $list, id => 'myclickmenu', headerMenu => 1, separator => '/', addToJQuery => $jquery, rm => 'MyClickMenu', remoteProgram => '/cgi-bin/jquery_clickmenu_results.pl') ; my $html = $clickmenu->HTML ; my $html = $tree->HTML ;
ClickMenu displays a menu in desktop format
The simplest way to present the data is in the format shown above. Each indentation represents another level. The letters in brackets stand for
A folder or node
A separator line between items
The list in the format show above
The css id of the element
When an item is pressed, the it and all ancestors are concatenated and sent to the calling program. The item called 'data' contains just the data as shown at the leaf or node. 'path' gives the whole path, each element being separated by the separator.
In other words, you might get data=myfile, and path=dir/dir1/dir2/myfile
The JQuery container
Sets the menu flush at the top with the following css:
position: fixed; top: 0; border: 0; width: 100%;
Instantiate the object
Produce the HTML code
<peter at pg-consultants.com>
Please report any bugs or feature requests to
bug-jquery-taconite at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=JQuery. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
You can find documentation for this module with the perldoc command.
You can also look for information at:
Copyright 2007 Peter Gordon, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.