Skip to content

StaticConfig

Marc Espín Sanz edited this page Apr 24, 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 except if its really needed since they are the 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',()=>{
		console.log('A new theme has been selected')
	})
}

Documentation

Tutorials

Contributing

About

Clone this wiki locally