mirror of
https://github.com/zadam/trilium.git
synced 2025-03-01 14:22:32 +01:00
14 lines
428 B
JavaScript
14 lines
428 B
JavaScript
import OnClickButtonWidget from "./onclick_button.js";
|
|
|
|
export default class CreatePaneButton extends OnClickButtonWidget {
|
|
constructor() {
|
|
super();
|
|
|
|
this.icon("bx-dock-right")
|
|
.title("Create new split")
|
|
.titlePlacement("bottom")
|
|
.onClick(widget => widget.triggerCommand("openNewNoteSplit", { ntxId: widget.getClosestNtxId() }))
|
|
.class("icon-action");
|
|
}
|
|
}
|