Optional
highlightedcontent-type, e.g. "application/json"
Optional
searchOptional
type: stringOptional
name: stringExecutes this FNote as a front-end or back-end script.
a promise that resolves when the script has been run. Additionally, for front-end notes, the promise will contain the value that is returned by the script.
Gives all possible note paths leading to this note. Paths containing search note are ignored (could form cycles)
array of notePaths (each represented by array of noteIds constituting the particular note path)
attribute type (label, relation, etc.)
attribute name
attribute of the given type and name. If there are more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.
Optional
type: AttributeTypeattribute type to filter
Optional
name: stringattribute name to filter
all note's attributes, including inherited ones
attribute type (label, relation, etc.)
attribute name
attribute value of the given type and name or null if no such attribute exists.
Returns the note path considered to be the "best"
Optional
hoistedNoteId: string = "root"array of noteIds constituting the particular note path
Returns the note path considered to be the "best"
Optional
hoistedNoteId: string = "root"serialized note path (e.g. 'root/a1h315/js725h')
Optional
name: stringlabel name to filter
all note's labels (attributes with type label), including inherited ones
label name
label value if label exists, null otherwise
Provides note's date metadata.
attribute type (label, relation, etc.)
attribute name
attribute of the given type and name. If there are more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.
Optional
type: AttributeTypeattribute type to filter
Optional
name: stringattribute name to filter
all note's attributes, including inherited ones
attribute type (label, relation, etc.)
attribute name
attribute value of the given type and name or null if no such attribute exists.
Optional
name: stringlabel name to filter
all note's labels (attributes with type label), including inherited ones
label name
label value if label exists, null otherwise
relation name
relation if it exists, null otherwise
Optional
name: stringrelation name to filter
all note's relations (attributes with type relation), including inherited ones
relation name
relation value if relation exists, null otherwise
relation name
relation if it exists, null otherwise
Optional
name: stringrelation name to filter
all note's relations (attributes with type relation), including inherited ones
target note of the relation or null (if target is empty or note was not found)
Optional
name: stringrelation name to filter
relation name
relation value if relation exists, null otherwise
JS script environment - either "frontend" or "backend"
Get relations which target this note
Get relations which target this note
attribute type (label, relation, etc.)
attribute name
true if note has an attribute with given type and name (including inherited)
label name
true if label exists (including inherited)
attribute type (label, relation, etc.)
attribute name
true if note has an attribute with given type and name (including inherited)
label name
true if label exists (excluding inherited)
relation name
true if relation exists (excluding inherited)
relation name
true if relation exists (including inherited)
boolean - true if there's no non-hidden path, note is not cloned to the visible tree
true if this note is HTML
true if this note is JavaScript (code or file)
label name
true if label exists (including inherited) and does not have "false" value.
Note is the main node and concept in Trilium.