Operate SeLite Settings-managed configurations through API. See its source. In Core extensions access it through object SeLiteSettings
. In other scopes, e.g. Selenium IDE extensions or code modules (as per JavascriptComplex > Javascript code modules), call
Components.utils.import("chrome://selite-settings/content/SeLiteSettings.js");
Define a configuration module (schema) in a Javascript file (in UTF-8). See test_settings_module.js as an example. Instantiate
SeLiteSettings.Field
, one instance per fieldSeLiteSettings.Module
, one instance per moduleThe definition must be
Whenever you update a module definition, you need to either
Use SeLiteSettings.loadFromJavascript()
to load or register & load a module programatically. You don’t need this if you register the configuration file via SettingsInterface.
See class SeLiteSettings.Module and its methods
getFieldsOfSet()
- primarily for modules that have associatesWithFolders==false
getFieldsDownToFolder()
- only for modules that have associatesWithFolders==true
See class SeLiteSettings.Field
and its methods setValue(), addValue()
and removeValue()
.