mirror of
https://github.com/zadam/trilium.git
synced 2025-11-14 17:25:52 +01:00
feat(view/calendar): render a text in calendar view
This commit is contained in:
33
src/public/app/widgets/view_widgets/calendar_view.ts
Normal file
33
src/public/app/widgets/view_widgets/calendar_view.ts
Normal file
@@ -0,0 +1,33 @@
|
||||
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;
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user