JQuery::ClickMenu - A clickable menu
Version 1.00
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 Gordon, <peter at pg-consultants.com>
<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.
bug-jquery-taconite at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc JQuery
You can also look for information at:
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/JQuery
CPAN Ratings
http://cpanratings.perl.org/d/JQuery
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=JQuery
Search CPAN
http://search.cpan.org/dist/JQuery
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.
To install JQuery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JQuery
CPAN shell
perl -MCPAN -e shell install JQuery
For more information on module installation, please visit the detailed CPAN module installation guide.