Class: Branch

Branch()

Branch represents a relationship between a child note and its parent note. Trilium allows a note to have multiple parents.

Constructor

new Branch()

Source:

Members

branchId :string

primary key
Type:
  • string
Source:

fromSearchNote :boolean

Type:
  • boolean
Source:

isExpanded :boolean

Type:
  • boolean
Source:

noteId :string

Type:
  • string
Source:

notePosition :int

Type:
  • int
Source:

parentNoteId :string

Type:
  • string
Source:

prefix :string

Type:
  • string
Source:

Methods

(async) getNote() → {NoteShort}

Source:
Returns:
Type
NoteShort

getNoteFromCache() → {NoteShort}

Source:
Returns:
Type
NoteShort

(async) getParentNote() → {NoteShort}

Source:
Returns:
Type
NoteShort

isTopLevel() → {boolean}

Source:
Returns:
true if it's top level, meaning its parent is root note
Type
boolean