JavaScript::Framework::jQuery::Plugin::Superfish - Support for jQuery Superfish plugin
my $plugin = JavaScript::Framework::jQuery::Plugin::Superfish->new( target_selector => 'ul.sf-menu', options => 'delay : 500, animation : { opacity : "show" }, dropShadows : true', use_supersubs => 1, supersubs_options => 'minWidth : 12, maxWidth : 27, extraWidth : 1' ); print $plugin->cons_statement; # $("ul.sf-menu").supersubs({ # minWidth: 12, # maxWidth: 27, # extraWidth: 1 # }).superfish({ # delay: 500, # animation: { opacity : "show" }, # dropShadows: true, # });
This module implements the interface required to generate a jQuery constructor for the jQuery Superfish plugin.
http://users.tpg.com.au/j_birch/plugins/superfish/
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
Return the text of the JavaScript statement that invokes the Superfish constructor.
David P.C. Wollmann <converter42 at gmail.com>
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.
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.