feat(views/table): insert row before

This commit is contained in:
Elian Doran
2025-07-13 14:10:37 +03:00
parent 5dd5af90c2
commit 8cced607eb
3 changed files with 26 additions and 3 deletions

View File

@@ -22,7 +22,17 @@ export function showRowContextMenu(_e: UIEvent, row: RowComponent, parentNote: F
title: "Insert row above",
uiIcon: "bx bx-list-plus",
handler: () => {
const target = e.target;
if (!target) {
return;
}
const component = $(target).closest(".component").prop("component");
component.triggerCommand("addNewRow", {
customOpts: {
target: "before",
targetBranchId: rowData.branchId,
}
});
}
},
{