feat(book/table): allow show/hide columns

This commit is contained in:
Elian Doran
2025-06-25 13:52:53 +03:00
parent 7e20e41521
commit c7b16cd043
3 changed files with 63 additions and 6 deletions

View File

@@ -3,6 +3,7 @@ import { buildData, type TableData } from "./data.js";
import FNote from "../../../entities/fnote.js";
import getPromotedAttributeInformation, { PromotedAttributeInformation } from "./parser.js";
import { setLabel } from "../../../services/attributes.js";
import applyHeaderCustomization from "./header-customization.js";
ModuleRegistry.registerModules([ AllCommunityModule ]);
@@ -11,7 +12,10 @@ export default function renderTable(el: HTMLElement, parentNote: FNote, notes: F
createGrid(el, {
...buildData(info, notes),
...setupEditing(info)
...setupEditing(info),
onGridReady(event) {
applyHeaderCustomization(el, event.api);
},
});
}