JavaScript::Framework::jQuery::Plugin::FilamentGrpMenu - Support for Filament Group jQuery menu plugin
my $plugin = JavaScript::Framework::jQuery::Plugin::FilamentGroupMenu->new( target_selector => '#menu-items', content => '$("#menu-items").html()', options => 'posX : "left", posY : "bottom", directionV : "down", showSpeed : 200, backLink : "false"' ); print $plugin->cons_statement; # $('#menu-items').menu({ # content: $("#menu-items").html(), # posX: "left", # posY: "bottom", # directionV: "down", # showSpeed: 200, # backLink: false # });
This module implements the interface required to generate a jQuery constructor for the Filament Group jQuery menu plugin.
http://www.filamentgroup.com/lab/jquery_ipod_style_and_flyout_menus/
The new constructor, provided automatically by Moose (in case you're looking for it and can't find it) is called from &JavaScript::Framework::jQuery::construct_plugin. The arguments passed to this subroutine are validated by this module.
new
Required
A string representing a jQuery selector expression.
A string representing a JavaScript object literal.
Return the text of the JavaScript statement that invokes the jQuery plugin constructor.
David P.C. Wollmann <converter42 at gmail.com> =head1 COPYRIGHT & LICENSE
Copyright 2009 David P.C. Wollmann, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The author is not affiliated with Filament Group, Inc.
To install JavaScript::Framework::jQuery, copy and paste the appropriate command in to your terminal.
cpanm
cpanm JavaScript::Framework::jQuery
CPAN shell
perl -MCPAN -e shell install JavaScript::Framework::jQuery
For more information on module installation, please visit the detailed CPAN module installation guide.