mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-08-10 10:22:29 +08:00
13 lines
379 B
JavaScript
13 lines
379 B
JavaScript
import ButtonWidget from "./button_widget.js";
|
|
|
|
export default class CreatePaneButton extends ButtonWidget {
|
|
constructor() {
|
|
super();
|
|
|
|
this.icon("bx-dock-right")
|
|
.title("Create new split")
|
|
.titlePlacement("bottom")
|
|
.onClick(widget => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() }));
|
|
}
|
|
}
|