mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-13 04:13:19 +08: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() }));
|
||
|
}
|
||
|
}
|