mirror of
https://github.com/zadam/trilium.git
synced 2025-11-09 23:05:51 +01:00
13 lines
380 B
JavaScript
13 lines
380 B
JavaScript
|
|
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() }));
|
||
|
|
}
|
||
|
|
}
|