|
|
BXE has now Plugin Support. The interface is still quite simple. More will maybe follow. See or for an example and for the corresponding config.xml entries Calling OrderThe loading of the plugin XML happens just before the XML Documents are starting to load, when are JS files defined in config.xml are already loaded. A plugin needs the following methods: getCSS()Should return an array of needed CSS by this plugin. Can be of course an empty array. getScripts()Should return an array of needed additional Javascript files by this plugin. Can be of course an empty array. init(options)Is called as soon as all plugin JS files are loaded. start()Is called just after everything is loaded, validated and initialized. It's the same object as initialized with init. Implementing itJust put that JS file into the plugins ordner. Name the class something like BxePluginName and the file PluginName.js. Then add <plugins>
{panel}
<plugin name="PluginName"> </plugin>
{panel}
</plugins>
to your config.xml (see the example mentioned above. And it should then automatically being loaded and initialized. |
Add Comment