From 13feb30f3ff9b913670a5fe7c8a9c1907d2c1740 Mon Sep 17 00:00:00 2001 From: Mark Powers Date: Fri, 4 Jul 2025 12:03:11 -0500 Subject: Initial commit --- api/JoplinViewsNoteList.d.ts | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 api/JoplinViewsNoteList.d.ts (limited to 'api/JoplinViewsNoteList.d.ts') diff --git a/api/JoplinViewsNoteList.d.ts b/api/JoplinViewsNoteList.d.ts new file mode 100644 index 0000000..6edf9b5 --- /dev/null +++ b/api/JoplinViewsNoteList.d.ts @@ -0,0 +1,42 @@ +import { Store } from 'redux'; +import Plugin from '../Plugin'; +import { ListRenderer } from './noteListType'; +/** + * This API allows you to customise how each note in the note list is rendered. + * The renderer you implement follows a unidirectional data flow. + * + * The app provides the required dependencies whenever a note is updated - you + * process these dependencies, and return some props, which are then passed to + * your template and rendered. See [[ListRenderer]] for a detailed description + * of each property of the renderer. + * + * ## Reference + * + * * [View the demo plugin](https://github.com/laurent22/joplin/tree/dev/packages/app-cli/tests/support/plugins/note_list_renderer) + * + * * [Default simple renderer](https://github.com/laurent22/joplin/tree/dev/packages/lib/services/noteList/defaultListRenderer.ts) + * + * * [Default detailed renderer](https://github.com/laurent22/joplin/tree/dev/packages/lib/services/noteList/defaultMultiColumnsRenderer.ts) + * + * ## Screenshots: + * + * ### Top to bottom with title, date and body + * + * + * + * ### Left to right with thumbnails + * + * + * + * ### Top to bottom with editable title + * + * + * + * desktop + */ +export default class JoplinViewsNoteList { + private plugin_; + private store_; + constructor(plugin: Plugin, store: Store); + registerRenderer(renderer: ListRenderer): Promise; +} -- cgit v1.2.3