OptionalntxId: stringOptionalhoistedNoteId: stringOptionalmainNtxId: stringOptionalnoteOptionalnoteOptionalparentOptionalparentOptionalviewReturns a promise which will retrieve the JQuery element of the content of this note context.
Do note that retrieving the content element needs to be handled by the type widget, which is the one which
provides the content element by listening to the executeWithContentElement event. Not all note types support
this.
If no content could be determined null is returned instead.
Get metadata for this note context.
The data key to retrieve
The stored data, or undefined if not found
See docs for isMainContext() for better explanation.
Optionalcallback: GetTextEditorCallbackCheck if context data exists for a given key.
A main context represents a tab and also the first split. Further splits are the children contexts of the main context. Imagine you have a tab with 3 splits, each showing notes A, B, C (in this order). In such a scenario, A context is the main context (also representing the tab as a whole), and B, C are the children of context A.
true if the context is main (= tab)
Removes a child component from this component's children array. This is used for cleanup when a widget is unmounted to prevent event listener accumulation.
Set metadata for this note context (e.g., table of contents, PDF pages, code outline). This data can be consumed by sidebar/toolbar components.
Unique identifier for the data type (e.g., "toc", "pdfPages", "codeOutline")
The data to store (will be cleared when switching notes)
Optionalopts: SetNoteOptsOptionaldata: CommandMappings[K]Staticgenerate
Abstract class for all components in the Trilium's frontend.
Contains also event implementation with following properties:
triggerEvent().