small API additions

This commit is contained in:
zadam
2020-06-14 14:30:57 +02:00
parent 16fef78344
commit fb975849b9
7 changed files with 19 additions and 5 deletions

View File

@@ -484,6 +484,15 @@ class NoteShort {
.map(attributeId => this.treeCache.attributes[attributeId]);
}
/**
* Return note complement which is most importantly note's content
*
* @return {Promise<NoteComplement>}
*/
async getNoteComplement() {
return await this.treeCache.getNoteComplement(this.noteId);
}
get toString() {
return `Note(noteId=${this.noteId}, title=${this.title})`;
}