refactor(client/ts): port a few small files

This commit is contained in:
Elian Doran
2025-02-11 19:16:11 +02:00
parent 44811f4f4b
commit 11e2dcfc64
24 changed files with 131 additions and 47 deletions

View File

@@ -0,0 +1,14 @@
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");
}
}