mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-24 05:04:49 +08:00
17 lines
433 B
JavaScript
17 lines
433 B
JavaScript
![]() |
import BasicWidget from "../basic_widget.js";
|
||
|
|
||
|
const TPL = `
|
||
|
<button type="button" class="action-button bx bx-sidebar" style="padding-top: 10px;"></button>`;
|
||
|
|
||
|
class ToggleSidebarButtonWidget extends BasicWidget {
|
||
|
doRender() {
|
||
|
this.$widget = $(TPL);
|
||
|
|
||
|
this.$widget.on('click', () => this.triggerCommand('setActiveScreen', {
|
||
|
screen: 'tree'
|
||
|
}));
|
||
|
}
|
||
|
}
|
||
|
|
||
|
export default ToggleSidebarButtonWidget;
|