2025-06-25 10:49:33 +03:00
|
|
|
import { createGrid, AllCommunityModule, ModuleRegistry } from "ag-grid-community";
|
2025-06-25 11:23:34 +03:00
|
|
|
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 ]);
|
|
|
|
|
|
2025-06-25 11:23:34 +03:00
|
|
|
export default function renderTable(el: HTMLElement, parentNote: FNote, notes: FNote[]) {
|
2025-06-25 10:49:33 +03:00
|
|
|
createGrid(el, {
|
2025-06-25 11:23:34 +03:00
|
|
|
...buildData(parentNote, notes)
|
2025-06-25 10:49:33 +03:00
|
|
|
});
|
|
|
|
|
}
|