mirror of
https://github.com/zadam/trilium.git
synced 2025-10-21 15:49:00 +02:00
refactor(views/table): merge storage into table view
This commit is contained in:
parent
19eff5e6d6
commit
e66aef17df
@ -1,5 +1,4 @@
|
||||
import froca from "../../services/froca.js";
|
||||
import type { StateInfo } from "./table_view/storage.js";
|
||||
import ViewMode, { type ViewModeArgs } from "./view_mode.js";
|
||||
import { createGrid, AllCommunityModule, ModuleRegistry, GridOptions } from "ag-grid-community";
|
||||
import { setLabel } from "../../services/attributes.js";
|
||||
@ -7,6 +6,7 @@ import getPromotedAttributeInformation from "./table_view/parser.js";
|
||||
import { buildData, TableData } from "./table_view/data.js";
|
||||
import applyHeaderCustomization from "./table_view/header-customization.js";
|
||||
import server from "../../services/server.js";
|
||||
import type { GridState } from "ag-grid-community";
|
||||
|
||||
const TPL = /*html*/`
|
||||
<div class="table-view">
|
||||
@ -36,6 +36,10 @@ const TPL = /*html*/`
|
||||
</div>
|
||||
`;
|
||||
|
||||
export interface StateInfo {
|
||||
gridState: GridState;
|
||||
}
|
||||
|
||||
export default class TableView extends ViewMode<StateInfo> {
|
||||
|
||||
private $root: JQuery<HTMLElement>;
|
||||
|
@ -1,6 +0,0 @@
|
||||
import { GridState } from "ag-grid-community";
|
||||
|
||||
export interface StateInfo {
|
||||
gridState: GridState;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user