internal package
Foswiki::Plugins::JQueryPlugin
On this page:
- internal package Foswiki::Plugins::JQueryPlugin
- initPlugin($topic, $web, $user) -> $boolean
- createPlugin($pluginName, ...) -> $plugin
- createTheme($themeName) -> $boolean
- registerPlugin($pluginName, $class) -> $plugin
- registerTheme($themeName, $url)
- handleButton($session, $params, $topic, $web) -> $result
- handlePopUpWindow($session, $params, $topic, $web) -> $result
- handleToggle($session, $params, $topic, $web) -> $result
- handleTabPane($session, $params, $topic, $web) -> $result
- handleTab($session, $params, $topic, $web) -> $result
- handleEndTab($session, $params, $topic, $web) -> $result
- handleEndTabPane($session, $params, $topic, $web) -> $result
- handleJQueryRequire($session, $params, $topic, $web) -> $result
- handleJQueryTheme($session, $params, $topic, $web) -> $result
- handleJQueryIconPath($session, $params, $topic, $web) -> $result
- handleJQueryIcon($session, $params, $topic, $web) -> $result
- handleJQueryPlugins($session, $params, $topic, $web) -> $result
internal package
Foswiki::Plugins::JQueryPlugin
Container for jQuery and plugins
initPlugin($topic, $web, $user) -> $boolean
finish up the plugins container SMELL: I'd prefer a proper finishHandler, alas it does not exist SMELL: Item11349 - this never gets called from unit tests, see finishPlugin(), added in Item1328 for 1.1.0createPlugin($pluginName, ...) -> $plugin
API to create a jQuery plugin. Instantiating it adds all required javascript and css files to the html page header.createTheme($themeName) -> $boolean
API to load a jQuery UI theme. Returns true if the theme has been loaded successfully.registerPlugin($pluginName, $class) -> $plugin
API to register a jQuery plugin. this is of use for other Foswiki plugins to register their javascript modules as a jQuery plugin. Registering a plugin 'foobar' will make it available via%JQREQUIRE{"foobar"}%
.
Class will default to 'Foswiki::Plugins::JQueryPlugin::FOOBAR,
The FOOBAR.pm stub must be derived from Foswiki::Plugins::JQueryPlugin::PLUGIN class.
registerTheme($themeName, $url)
API to register a jQuery theme. this is of use for other Foswiki plugins to register their theme. Registering a theme 'foobar' will make it available via%JQTHEME{"foobar"}%
.
The $url
parameter will default to '/foswiki/pub/System/JQueryPlugin/ui/$themeName/jquery-ui.css'.