refactor(views/table): use builtin way of disabling branch elements

This commit is contained in:
Elian Doran 2025-07-17 14:34:40 +03:00
parent df3b9faf8d
commit 27d515f289
No known key found for this signature in database
2 changed files with 1 additions and 4 deletions

View File

@ -152,10 +152,6 @@
color: var(--row-text-color);
}
.tabulator-data-tree-branch {
visibility: hidden;
}
/* Checkbox cells */
.tabulator .tabulator-cell:has(svg),

View File

@ -159,6 +159,7 @@ export default class TableView extends ViewMode<StateInfo> {
...opts,
dataTree: hasChildren,
dataTreeStartExpanded: true,
dataTreeBranchElement: false,
dataTreeElementColumn: "title",
dataTreeExpandElement: `<button class="tree-expand"><span class="bx bx-chevron-right"></span></button>`,
dataTreeCollapseElement: `<button class="tree-collapse"><span class="bx bx-chevron-down"></span></button>`