mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-09-01 04:12:58 +08: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;
|