mirror of
				https://github.com/zadam/trilium.git
				synced 2025-11-03 11:56:01 +01:00 
			
		
		
		
	refactor(views/table): use builtin way of disabling branch elements
This commit is contained in:
		@@ -152,10 +152,6 @@
 | 
				
			|||||||
    color: var(--row-text-color);
 | 
					    color: var(--row-text-color);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.tabulator-data-tree-branch {
 | 
					 | 
				
			||||||
    visibility: hidden;
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
/* Checkbox cells */
 | 
					/* Checkbox cells */
 | 
				
			||||||
 | 
					
 | 
				
			||||||
.tabulator .tabulator-cell:has(svg),
 | 
					.tabulator .tabulator-cell:has(svg),
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -159,6 +159,7 @@ export default class TableView extends ViewMode<StateInfo> {
 | 
				
			|||||||
                ...opts,
 | 
					                ...opts,
 | 
				
			||||||
                dataTree: hasChildren,
 | 
					                dataTree: hasChildren,
 | 
				
			||||||
                dataTreeStartExpanded: true,
 | 
					                dataTreeStartExpanded: true,
 | 
				
			||||||
 | 
					                dataTreeBranchElement: false,
 | 
				
			||||||
                dataTreeElementColumn: "title",
 | 
					                dataTreeElementColumn: "title",
 | 
				
			||||||
                dataTreeExpandElement: `<button class="tree-expand"><span class="bx bx-chevron-right"></span></button>`,
 | 
					                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>`
 | 
					                dataTreeCollapseElement: `<button class="tree-collapse"><span class="bx bx-chevron-down"></span></button>`
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user