mirror of
https://github.com/laurent22/joplin.git
synced 2024-12-21 09:38:01 +02:00
20 lines
285 B
JavaScript
20 lines
285 B
JavaScript
const ListWidget = require('tkwidgets/ListWidget.js');
|
|
|
|
class ConsoleWidget extends ListWidget {
|
|
|
|
constructor() {
|
|
super();
|
|
}
|
|
|
|
get name() {
|
|
return 'console';
|
|
}
|
|
|
|
addItem(v) {
|
|
super.addItem(v);
|
|
this.currentIndex = this.items.length - 1;
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = ConsoleWidget; |