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