PerlDoc

26 August 2025 - 17:41 | Version 1 |
See PublishedAPI for packages intended to be used by Plugin and Contrib authors, or browse all packages.
See also Developing plugins, Developer's Bible, Technical Overview


Parent package: Foswiki::Plugins::JQueryPlugin
Child packages:

    internal package Foswiki::Plugins::JQueryPlugin

    Container for jQuery and plugins

    PackageMethod init()

    initialize plugin container

    ObjectMethod createPlugin( $pluginName, … ) → $plugin

    Helper method to establish plugin dependencies. See load().

    ObjectMethd createTheme ($themeName, $url) → $boolean

    Helper method to switch on a theme. Returns true if $themeName has been loaded successfully. Note that a previously loaded theme will be replaced with the new one as there can only be one theme per html page. The $url parameter optionally specifies from where to load the theme. It defaults to the url registered in configure for the named theme.

    ObjectMethod registerPlugin( $pluginName, $class ) → $descriptor

    Helper method to register a plugin.

    ObjectMethod registerTheme( $themeName, $url ) → $descriptor

    Helper method to register a theme.

    ObjectMethod finish

    finalizer

    ObjectMethod load ( $pluginName ) → $plugin

    Loads a plugin and runs its initializer.

    parameters

    returns

    ObjectMethod expandVariables( $format, %params) → $string

    Helper function to expand standard escape sequences $percnt, $nop, $n and $dollar.

    ClassMethod getPlugins () → @plugins

    returns a list of all known plugins

    ClassMethod getRandom () → $integer

    returns a random positive integer between 1 and 10000. this can be used to generate html element IDs which are not allowed to clash within the same html page, even not when it got extended via ajax.