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:

Extends

Members

branchId :string

Type:
  • string
Source:

childNote

Source:

isExpanded :boolean

Type:
  • boolean
Source:

noteId :string

Type:
  • string
Source:

notePosition :int

Type:
  • int
Source:

parentNote

Source:

parentNoteId :string

Type:
  • string
Source:

prefix :string

Type:
  • string
Source:

utcDateModified :string

Type:
  • string
Source:

Methods

markAsDeleted(deleteIdopt)

Mark the entity as (soft) deleted. It will be completely erased later.
Parameters:
Name Type Attributes Default Description
deleteId <optional>
null
Overrides:
Source:

save() → {AbstractEntity}

Saves entity - executes SQL, but doesn't commit the transaction on its own
Overrides:
Source:
Returns:
Type
AbstractEntity