mirror of
https://github.com/TriliumNext/Notes.git
synced 2025-07-29 11:02:28 +08:00
34 lines
754 B
TypeScript
34 lines
754 B
TypeScript
![]() |
import type FNote from "../../entities/fnote.js";
|
||
|
import ViewMode from "./view_mode.js";
|
||
|
|
||
|
const TPL = `
|
||
|
<div class="calendar-view">
|
||
|
<style>
|
||
|
.calendar-view {
|
||
|
overflow: hidden;
|
||
|
position: relative;
|
||
|
height: 100%;
|
||
|
}
|
||
|
</style>
|
||
|
|
||
|
Hello world.
|
||
|
</div>
|
||
|
`;
|
||
|
|
||
|
export default class CalendarView extends ViewMode {
|
||
|
|
||
|
private $root: JQuery<HTMLElement>;
|
||
|
|
||
|
constructor(viewType: string, $parent: JQuery<HTMLElement>, parentNote: FNote, noteIds: string[], showNotePath: boolean = false) {
|
||
|
super($parent, parentNote, noteIds, showNotePath);
|
||
|
|
||
|
this.$root = $(TPL);
|
||
|
$parent.append(this.$root);
|
||
|
}
|
||
|
|
||
|
async renderList(): Promise<JQuery<HTMLElement> | undefined> {
|
||
|
return this.$root;
|
||
|
}
|
||
|
|
||
|
}
|