-
-
Notifications
You must be signed in to change notification settings - Fork 126
StaticConfig
Marc Espín Sanz edited this page Jun 23, 2020
·
5 revisions
StaticConfig is a reactive object with the user's configuration, such as their theme preference. It also manages various events.
You can access its data, but I don't recommend you modify them since it contains thes user's preferences.
function entry(API){
console.log(API.StaticConfig.data.theme) //Night
}
This will print the user's theme preference name
You can also bind events to a specific keyword.
function entry(API){
API.StaticConfig.keyChanged('theme', newTheme => {
console.log(`Theme ${newTheme} has been selected`)
})
}
Documentation
Tutorials
Contributing
About