mirror of
https://github.com/zadam/trilium.git
synced 2025-10-28 01:59:04 +01:00
feat(views/table): hide context menu for small columns
This commit is contained in:
parent
d5327b3b4a
commit
ae9b2c08a9
@ -1,9 +1,10 @@
|
||||
import type { CellComponent, MenuObject, Tabulator } from "tabulator-tables";
|
||||
import type { CellComponent, ColumnComponent, MenuObject, Tabulator } from "tabulator-tables";
|
||||
|
||||
export function applyHeaderMenu(columns) {
|
||||
//apply header menu to each column
|
||||
export function applyHeaderMenu(columns: ColumnComponent[]) {
|
||||
for (let column of columns) {
|
||||
column.headerMenu = headerMenu;
|
||||
if (column.headerSort !== false) {
|
||||
column.headerMenu = headerMenu;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user