import ViewMode, { ViewModeArgs } from "../view_mode";
import { getBoardData } from "./data";
const TPL = /*html*/`
`;
export interface StateInfo {
};
export default class BoardView extends ViewMode {
private $root: JQuery;
private $container: JQuery;
constructor(args: ViewModeArgs) {
super(args, "board");
this.$root = $(TPL);
this.$container = this.$root.find(".board-view-container");
args.$parent.append(this.$root);
}
async renderList(): Promise | undefined> {
// this.$container.empty();
this.renderBoard(this.$container[0]);
return this.$root;
}
private async renderBoard(el: HTMLElement) {
const data = await getBoardData(this.noteIds, "status");
console.log("Board data:", data);
}
}