mirror of
https://github.com/zadam/trilium.git
synced 2025-11-06 13:26:01 +01:00
feat(views/table): display a dialog to add a new column
This commit is contained in:
@@ -8,6 +8,7 @@ import server from "../../../services/server.js";
|
||||
import type { GridApi, GridState } from "ag-grid-community";
|
||||
import SpacedUpdate from "../../../services/spaced_update.js";
|
||||
import branches from "../../../services/branches.js";
|
||||
import type { CommandListenerData } from "../../../components/app_context.js";
|
||||
|
||||
const TPL = /*html*/`
|
||||
<div class="table-view">
|
||||
@@ -33,6 +34,10 @@ const TPL = /*html*/`
|
||||
}
|
||||
</style>
|
||||
|
||||
<div class="header">
|
||||
<button data-trigger-command="addNoteListItem">Add new column</button>
|
||||
</div>
|
||||
|
||||
<div class="table-view-container"></div>
|
||||
</div>
|
||||
`;
|
||||
@@ -158,5 +163,17 @@ export default class TableView extends ViewMode<StateInfo> {
|
||||
};
|
||||
return config;
|
||||
}
|
||||
|
||||
async saveAttributesCommand() {
|
||||
console.log("Save attributes");
|
||||
}
|
||||
|
||||
async reloadAttributesCommand() {
|
||||
console.log("Reload attributes");
|
||||
}
|
||||
|
||||
async updateAttributeListCommand({ attributes }: CommandListenerData<"updateAttributeList">) {
|
||||
console.log("Update attributes", { attributes });
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user