mirror of
https://github.com/zadam/trilium.git
synced 2025-11-10 07:15:51 +01:00
closing panes
This commit is contained in:
12
src/public/app/widgets/buttons/create_pane_button.js
Normal file
12
src/public/app/widgets/buttons/create_pane_button.js
Normal file
@@ -0,0 +1,12 @@
|
||||
import ButtonWidget from "./button_widget.js";
|
||||
|
||||
export default class CreatePaneButton extends ButtonWidget {
|
||||
constructor() {
|
||||
super();
|
||||
|
||||
this.icon("bx-window-open bx-rotate-90")
|
||||
.title("Create new pane")
|
||||
.titlePlacement("bottom")
|
||||
.onClick(widget => widget.triggerCommand("openNewPane", { ntxId: widget.getNtxId() }));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user