mirror of
https://github.com/zadam/trilium.git
synced 2025-11-02 12:39:04 +01:00
19 lines
462 B
TypeScript
19 lines
462 B
TypeScript
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;
|