mirror of
https://github.com/zadam/trilium.git
synced 2025-11-17 10:40:41 +01:00
feat(book/table): create new view type
This commit is contained in:
24
apps/client/src/widgets/view_widgets/table_view.ts
Normal file
24
apps/client/src/widgets/view_widgets/table_view.ts
Normal file
@@ -0,0 +1,24 @@
|
||||
import ViewMode, { ViewModeArgs } from "./view_mode";
|
||||
|
||||
const TPL = /*html*/`
|
||||
<div class="table-view">
|
||||
<p>Table view goes here.</p>
|
||||
</div>
|
||||
`;
|
||||
|
||||
export default class TableView extends ViewMode {
|
||||
|
||||
private $root: JQuery<HTMLElement>;
|
||||
|
||||
constructor(args: ViewModeArgs) {
|
||||
super(args);
|
||||
|
||||
this.$root = $(TPL);
|
||||
args.$parent.append(this.$root);
|
||||
}
|
||||
|
||||
async renderList() {
|
||||
return this.$root;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user