getElement#
Access to the Dom of the statusbar element.
let $statusbar = this.app.statusbar.getElement();
let html = $statusbar.html();
add#
Arguments:
- name
String - html
String - position
String
Adds an item with specified name and HTML to the statusbar.
Specify the end position if you want to add an item to the right corner of the status bar.
this.app.statusbar.add('stat', '124 <b>words</b>');
this.app.statusbar.add('stat', '124 <b>words</b>', 'end');
update#
Arguments:
- name
String - html
String - position
String
Updates or adds the item with specified name in the statusbar.
Specify the end position if you want to add an item to the right corner of the status bar.
this.app.statusbar.update('stat', '125 <b>words</b>');
this.app.statusbar.update('stat', '125 <b>words</b>', 'end');
get#
Arguments:
- name (optional)
String
Returns the wrapped Dom object of the specified item in the statusbar. If the item doesn't exist returns false. Or return all items of the statusbar.
let $item = this.app.statusbar.get('stat');
let $items = this.app.statusbar.get();
remove#
Arguments:
- name (optional)
String
Removes the specified item form the statusbar.
this.app.statusbar.remove('stat');
clear#
Removes all items from the statusbar.
this.app.statusbar.clear();