feat(book/table): create new view type

This commit is contained in:
Elian Doran
2025-06-25 10:31:41 +03:00
parent 1ff7228ca5
commit fcd71957ff
4 changed files with 44 additions and 10 deletions

View 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;
}
}