Skip to content

StatusBarItem

Marc Espín Sanz edited this page Apr 1, 2020 · 7 revisions

A status bar item is one of the buttons you see on the bottom bar.

You can create one like:

function entry(API){
	new API.StatusBarItem({
		label:'Click me',
		action(){
			console.log('You clicked me :)')
		}
	})
}

The action function will be executed when the button is clicked. The first argument is the click event.

function entry(API){
	new API.StatusBarItem({
		label:'Click me',
		action(e){
			console.log('The click event: ',e)
		}
	})
}

Documentation

Tutorials

Contributing

About

Clone this wiki locally