OptionalhighlightedStructured, diacritic/regex-aware counterpart of highlightedTokens; prefer this when present.
Optionalhighlightedcontent-type, e.g. "application/json"
OptionalsearchReturns true if the note's metadata (title, icon) should not be editable. This applies to system notes like options, help, and launch bar configuration.
Optionaltype: stringOptionalname: stringOptionalsort: booleanOptionalsort: booleanExecutes 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.
The attribute definitions that apply to this note, at most one per defined name.
A definition can reach a note from several places at once — its own, an ancestor's, a
template's — and the nearest one wins: a note redefining label:status describes it for
itself rather than gaining a second field beside the one it inherited. getAttributes()
already lists owned attributes before inherited ones and inherited before templated ones, at
every level, so keeping the first of each name is keeping the nearest.
Optionaltype: AttributeType
attribute type to filter
Optionalname: string
attribute 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.
The value a note created under this one would be given for the attribute without asking for
it, or null where it would be given none: a child:-prefixed attribute copied onto every
new child, an inheritable attribute handed down the tree, or one lent by a template the child
is given. Checked in that order, which is the order getAttributes() lists them in on the
child itself.
Mirrors copyChildAttributes() in trilium-core, which is where the copying happens. Two
uses: previewing a note that does not exist yet (see GhostPin in the geo map), and telling a
default apart from a value the user chose — what a note would be given anyway is not worth
writing onto it, and writing it defeats the setting that would have given it.
childType is the type the caller is about to create. A ~child:template of another type is
skipped by core when the type was chosen explicitly (#3015) and lends such a child nothing;
left out, the template is taken to apply. The title is not answered for: #titleTemplate is
evaluated by the server against values the client does not hold.
OptionalchildType: NoteTypeReturns the note path considered to be the "best"
OptionalhoistedNoteId: stringOptionalactiveNotePath: stringarray of noteIds constituting the particular note path
Returns the note path considered to be the "best"
OptionalhoistedNoteId: stringserialized note path (e.g. 'root/a1h315/js725h')
OptionalincludeArchived: booleanOptionalname: string
label name to filter
all note's labels (attributes with type label), including inherited ones
label name
label value if label exists, null otherwise
label name
OptionalchildType: NoteTypethe label value a note created under this one would be given, or null
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.
Optionaltype: AttributeType
attribute type to filter
Optionalname: string
attribute 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.
Optionalname: string
label name to filter
all note's labels (attributes with type label), including inherited ones
label name
label value if label exists, null otherwise
Optionalname: string
relation name to filter
all note's relations (attributes with type relation), including inherited ones
relation name
relation value if relation exists, null otherwise
Optionalname: string
relation 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)
Optionalname: string
relation name to filter
relation name
relation value if relation exists, null otherwise
JS script environment - either "frontend" or "backend"
OptionalhoistedNoteId: stringOptionalactiveNotePath: stringOptionalincludeArchived: booleanGet 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)
Returns true if the note has a label with the given name (same as hasOwnedLabel), or it has a label with the disabled: prefix (for example due to a safe import).
the name of the label to look for.
true if the label exists, or its version with the disabled: prefix.
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.