2025-01-13 23:18:10 +02:00
|
|
|
import type FNote from "../entities/fnote.js";
|
2025-02-13 23:23:18 +02:00
|
|
|
import ListOrGridView from "../widgets/view_widgets/list_or_grid_view.js";
|
|
|
|
import type ViewMode from "../widgets/view_widgets/view_mode.js";
|
2020-10-07 23:08:17 +02:00
|
|
|
|
2025-02-13 23:23:18 +02:00
|
|
|
export default class NoteListRenderer {
|
2023-06-22 23:34:05 +02:00
|
|
|
|
2025-02-13 23:23:18 +02:00
|
|
|
private viewMode: ViewMode;
|
2023-03-21 16:19:09 -04:00
|
|
|
|
2024-12-23 11:00:10 +02:00
|
|
|
constructor($parent: JQuery<HTMLElement>, parentNote: FNote, noteIds: string[], showNotePath: boolean = false) {
|
2025-02-13 23:23:18 +02:00
|
|
|
this.viewMode = new ListOrGridView($parent, parentNote, noteIds, showNotePath);
|
2021-01-28 23:29:10 +01:00
|
|
|
}
|
|
|
|
|
2020-10-23 22:11:39 +02:00
|
|
|
async renderList() {
|
2025-02-13 23:23:18 +02:00
|
|
|
return await this.viewMode.renderList();
|
2020-10-23 22:11:39 +02:00
|
|
|
}
|
2020-10-22 22:49:22 +02:00
|
|
|
|
2020-10-07 23:08:17 +02:00
|
|
|
}
|