Files
Trilium/apps/client/src/widgets/view_widgets/table_view/renderer.ts

12 lines
390 B
TypeScript
Raw Normal View History

2025-06-25 10:49:33 +03:00
import { createGrid, AllCommunityModule, ModuleRegistry } from "ag-grid-community";
import { buildData } from "./data.js";
2025-06-25 11:03:43 +03:00
import FNote from "../../../entities/fnote.js";
2025-06-25 10:49:33 +03:00
ModuleRegistry.registerModules([ AllCommunityModule ]);
export default function renderTable(el: HTMLElement, parentNote: FNote, notes: FNote[]) {
2025-06-25 10:49:33 +03:00
createGrid(el, {
...buildData(parentNote, notes)
2025-06-25 10:49:33 +03:00
});
}