Module
The module object
Last updated
The module object
Last updated
Creating a module can be done by using
enable
This function gets called whenever the module is enabled.
disable
This function gets called whenever the module is disabled.
settingChanged
This function gets called whenever one of the settings in the module is changed by the user.
object
Inside of the object you supply when registering the module you can reference the module itself directly via this.module
getName(): String
Returns the name of the module.
getDescription(): String
Returns the description of the module.
enabled(): boolean
Tells you if the module is enabled or not.
toggle(): void
Will enable the module if its currently disabled, if the module is enabled already it will turn the module off.
enable(): void
Enables the module, if the module is already enabled this won't do anything.
disable(): void
Disables the module, if the module is already disabled this won't do anything
Will get the setting from the module that matches the name given, if the setting can not be found this will return null.
To get the object for a existing module in breeze you can use