2018-08-29 20:44:35 +02:00
<!DOCTYPE html>
< html lang = "en" >
< head >
< meta charset = "utf-8" >
< title > JSDoc: Class: Note< / title >
< script src = "scripts/prettify/prettify.js" > < / script >
< script src = "scripts/prettify/lang-css.js" > < / script >
<!-- [if lt IE 9]>
< script src = "//html5shiv.googlecode.com/svn/trunk/html5.js" > < / script >
<![endif]-->
< link type = "text/css" rel = "stylesheet" href = "styles/prettify-tomorrow.css" >
< link type = "text/css" rel = "stylesheet" href = "styles/jsdoc-default.css" >
< / head >
< body >
< div id = "main" >
< h1 class = "page-title" > Class: Note< / h1 >
< section >
< header >
< h2 > < span class = "attribs" > < span class = "type-signature" > < / span > < / span > Note< span class = "signature" > (row)< / span > < span class = "type-signature" > < / span > < / h2 >
< div class = "class-description" > This represents a Note which is a central object in the Trilium Notes project.< / div >
< / header >
< article >
< div class = "container-overview" >
< h2 > Constructor< / h2 >
< h4 class = "name" id = "Note" > < span class = "type-signature" > < / span > new Note< span class = "signature" > (row)< / span > < span class = "type-signature" > < / span > < / h4 >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > row< / code > < / td >
< td class = "type" >
< / td >
< td class = "description last" > object containing database row from "notes" table< / td >
< / tr >
< / tbody >
< / table >
< h5 class = "subsection-title" > Properties:< / h5 >
< table class = "props" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > noteId< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > primary key< / td >
< / tr >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > one of "text", "code", "file" or "render"< / td >
< / tr >
< tr >
< td class = "name" > < code > mime< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > MIME type, e.g. "text/html"< / td >
< / tr >
< tr >
< td class = "name" > < code > title< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > note title< / td >
< / tr >
< tr >
< td class = "name" > < code > isProtected< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "description last" > true if note is protected< / td >
< / tr >
< tr >
< td class = "name" > < code > isDeleted< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "description last" > true if note is deleted< / td >
< / tr >
2020-02-02 11:44:08 +01:00
< tr >
< td class = "name" > < code > deleteId< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
|
< span class = "param-type" > null< / span >
< / td >
< td class = "description last" > ID identifying delete transaction< / td >
< / tr >
2019-11-08 22:34:30 +01:00
< tr >
< td class = "name" > < code > isErased< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "description last" > true if note's content is erased after it has been deleted< / td >
< / tr >
2018-08-29 20:44:35 +02:00
< tr >
< td class = "name" > < code > dateCreated< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2019-03-14 20:49:10 +01:00
< td class = "description last" > local date time (with offset)< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< tr >
< td class = "name" > < code > dateModified< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2019-03-14 20:49:10 +01:00
< td class = "description last" > local date time (with offset)< / td >
< / tr >
< tr >
< td class = "name" > < code > utcDateCreated< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > < / td >
< / tr >
< tr >
< td class = "name" > < code > utcDateModified< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2018-08-29 20:44:35 +02:00
< td class = "description last" > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line32" > line 32< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< / div >
< h3 class = "subsection-title" > Extends< / h3 >
< ul >
< li > < a href = "Entity.html" > Entity< / a > < / li >
< / ul >
< h3 class = "subsection-title" > Methods< / h3 >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "addAttribute" > < span class = "type-signature" > < / span > addAttribute< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Attribute.html" > Attribute< / a > }< / span > < / h4 >
2019-11-18 23:01:31 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line531" > line 531< / a >
2019-11-18 23:01:31 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Attribute.html" > Attribute< / a > < / span >
2019-11-18 23:01:31 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getAllNotePaths" > < span class = "type-signature" > < / span > getAllNotePaths< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< Array.< string>>}< / span > < / h4 >
2019-11-23 22:56:35 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line855" > line 855< / a >
2019-11-23 22:56:35 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
- array of notePaths (each represented by array of noteIds constituting the particular note path)
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< Array.< string>>< / span >
2019-11-23 22:56:35 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getAttribute" > < span class = "type-signature" > < / span > getAttribute< span class = "signature" > (type, name)< / span > < span class = "type-signature" > → {< a href = "Attribute.html" > Attribute< / a > }< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > attribute type (label, relation, etc.)< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > attribute name< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line430" > line 430< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
2018-12-22 22:28:49 +01:00
< div class = "param-desc" >
attribute of given type and name. If there's more such attributes, first is returned. Returns null if there's no such attribute belonging to this note.
< / div >
2018-08-29 20:44:35 +02:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Attribute.html" > Attribute< / a > < / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getAttributes" > < span class = "type-signature" > < / span > getAttributes< span class = "signature" > (type< span class = "signature-attributes" > opt< / span > , name< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2019-12-03 22:53:17 +01:00
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > (optional) attribute type to filter< / td >
< / tr >
2018-08-29 20:44:35 +02:00
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2019-12-03 22:53:17 +01:00
< td class = "description last" > (optional) attribute name to filter< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line268" > line 268< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
2018-12-22 22:28:49 +01:00
< div class = "param-desc" >
all note's attributes, including inherited ones
< / div >
2018-08-29 20:44:35 +02:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getAttributeValue" > < span class = "type-signature" > < / span > getAttributeValue< span class = "signature" > (type, name)< / span > < span class = "type-signature" > → {string|null}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
2018-12-22 22:28:49 +01:00
< td class = "name" > < code > type< / code > < / td >
2018-08-29 20:44:35 +02:00
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2018-12-22 22:28:49 +01:00
< td class = "description last" > attribute type (label, relation, etc.)< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< tr >
2018-12-22 22:28:49 +01:00
< td class = "name" > < code > name< / code > < / td >
2018-08-29 20:44:35 +02:00
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2018-12-22 22:28:49 +01:00
< td class = "description last" > attribute name< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line441" > line 441< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
2018-12-22 22:28:49 +01:00
< div class = "param-desc" >
attribute value of given type and name or null if no such attribute exists.
< / div >
2018-08-29 20:44:35 +02:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > string< / span >
|
< span class = "param-type" > null< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getBranches" > < span class = "type-signature" > < / span > getBranches< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< < a href = "Branch.html" > Branch< / a > >}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< dl class = "details" >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line801" > line 801< / a >
2018-12-22 22:28:49 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-12-22 22:28:49 +01:00
< h5 > Returns:< / h5 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< dl >
< dt >
Type
< / dt >
< dd >
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Branch.html" > Branch< / a > >< / span >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / dd >
< / dl >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getChildBranches" > < span class = "type-signature" > < / span > getChildBranches< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< < a href = "Branch.html" > Branch< / a > >}< / span > < / h4 >
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line829" > line 829< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2018-12-22 22:28:49 +01:00
child branches of this note
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Branch.html" > Branch< / a > >< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getChildNotes" > < span class = "type-signature" > < / span > getChildNotes< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< < a href = "Note.html" > Note< / a > >}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< dl class = "details" >
2018-09-03 16:05:28 +02:00
2018-12-22 22:28:49 +01:00
2018-09-03 16:05:28 +02:00
2018-12-22 22:28:49 +01:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line815" > line 815< / a >
2018-12-22 22:28:49 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-12-22 22:28:49 +01:00
< h5 > Returns:< / h5 >
2018-09-03 16:05:28 +02:00
2018-12-22 22:28:49 +01:00
< div class = "param-desc" >
child notes of this note
< / div >
2018-09-03 16:05:28 +02:00
2018-12-22 22:28:49 +01:00
< dl >
< dt >
Type
< / dt >
< dd >
2018-09-03 16:05:28 +02:00
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Note.html" > Note< / a > >< / span >
< / dd >
< / dl >
< h4 class = "name" id = "getContent" > < span class = "type-signature" > < / span > getContent< span class = "signature" > ()< / span > < span class = "type-signature" > → {*}< / span > < / h4 >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line71" > line 71< / a >
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > *< / span >
2018-09-03 16:05:28 +02:00
2018-12-22 22:28:49 +01:00
< / dd >
< / dl >
2018-09-03 16:05:28 +02:00
2018-12-22 22:28:49 +01:00
2018-09-03 16:05:28 +02:00
2018-12-22 22:28:49 +01:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getContentMetadata" > < span class = "type-signature" > < / span > getContentMetadata< span class = "signature" > ()< / span > < span class = "type-signature" > → {Object}< / span > < / h4 >
2019-02-20 22:24:51 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line107" > line 107< / a >
2019-02-20 22:24:51 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2019-02-20 22:24:51 +01:00
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Object< / span >
2019-02-20 22:24:51 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getDescendantNoteIds" > < span class = "type-signature" > < / span > getDescendantNoteIds< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< string>}< / span > < / h4 >
2018-12-22 22:28:49 +01:00
2018-09-03 16:05:28 +02:00
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line701" > line 701< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2018-12-22 22:28:49 +01:00
return list of all descendant noteIds of this note. Returning just noteIds because number of notes can be huge. Includes also this note's noteId
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< string>< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getDescendantNotesWithAttribute" > < span class = "type-signature" > < / span > getDescendantNotesWithAttribute< span class = "signature" > (type, name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Note.html" > Note< / a > >}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< div class = "description" >
Finds descendant notes with given attribute name and value. Only own attributes are considered, not inherited ones
< / div >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2018-12-22 22:28:49 +01:00
< th > Attributes< / th >
2018-08-29 20:44:35 +02:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2018-12-22 22:28:49 +01:00
< td class = "attributes" >
< / td >
2018-08-29 20:44:35 +02:00
< td class = "description last" > attribute type (label, relation, etc.)< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2018-12-22 22:28:49 +01:00
< td class = "attributes" >
< / td >
< td class = "description last" > attribute name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "description last" > attribute value< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line724" > line 724< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Note.html" > Note< / a > >< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getDescendantNotesWithLabel" > < span class = "type-signature" > < / span > getDescendantNotesWithLabel< span class = "signature" > (name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Note.html" > Note< / a > >}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< div class = "description" >
Finds descendant notes with given label name and value. Only own labels are considered, not inherited ones
< / div >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< h5 > Parameters:< / h5 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< th > Type< / th >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< th > Attributes< / th >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< tbody >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< tr >
< td class = "name" > < code > name< / code > < / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "attributes" >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "description last" > label name< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< tr >
< td class = "name" > < code > value< / code > < / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "attributes" >
< optional>< br >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "description last" > label value< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / tbody >
< / table >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< dl class = "details" >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line762" > line 762< / a >
2018-12-22 22:28:49 +01:00
< / li > < / ul > < / dd >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / dl >
2018-08-29 20:44:35 +02:00
2019-08-20 21:40:47 +02:00
2018-12-22 22:28:49 +01:00
< h5 > Returns:< / h5 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Note.html" > Note< / a > >< / span >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / dd >
< / dl >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getDescendantNotesWithRelation" > < span class = "type-signature" > < / span > getDescendantNotesWithRelation< span class = "signature" > (name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Note.html" > Note< / a > >}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< div class = "description" >
Finds descendant notes with given relation name and value. Only own relations are considered, not inherited ones
< / div >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< h5 > Parameters:< / h5 >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< th > Type< / th >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< th > Attributes< / th >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< tbody >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< tr >
< td class = "name" > < code > name< / code > < / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "attributes" >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "description last" > relation name< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< tr >
< td class = "name" > < code > value< / code > < / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "attributes" >
< optional>< br >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< td class = "description last" > relation value< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2018-12-22 22:28:49 +01:00
< / tbody >
< / table >
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line771" > line 771< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Note.html" > Note< / a > >< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getJsonContent" > < span class = "type-signature" > < / span > getJsonContent< span class = "signature" > ()< / span > < span class = "type-signature" > → {*}< / span > < / h4 >
2019-02-20 22:24:51 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line118" > line 118< / a >
2019-02-20 22:24:51 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2019-02-20 22:24:51 +01:00
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > *< / span >
2019-02-20 22:24:51 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getLabel" > < span class = "type-signature" > < / span > getLabel< span class = "signature" > (name)< / span > < span class = "type-signature" > → {< a href = "Attribute.html" > Attribute< / a > |null}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > label name< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line584" > line 584< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
label if it exists, null otherwise
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Attribute.html" > Attribute< / a > < / span >
|
< span class = "param-type" > null< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getLabels" > < span class = "type-signature" > < / span > getLabels< span class = "signature" > (name< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2018-11-13 12:50:08 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > label name to filter< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line291" > line 291< / a >
2018-11-13 12:50:08 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-11-13 12:50:08 +01:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2020-09-30 22:48:30 +02:00
all note's labels (attributes with type label), including inherited ones
2018-11-13 12:50:08 +01:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2018-11-13 12:50:08 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getLabelValue" > < span class = "type-signature" > < / span > getLabelValue< span class = "signature" > (name)< / span > < span class = "type-signature" > → {string|null}< / span > < / h4 >
2018-09-03 16:05:28 +02:00
< h5 > Parameters:< / h5 >
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
< tr >
< td class = "name" > < code > name< / code > < / td >
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
< / td >
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< td class = "description last" > label name< / td >
2018-09-03 16:05:28 +02:00
< / tr >
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
< / tbody >
< / table >
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line608" > line 608< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2020-09-30 22:48:30 +02:00
label value if label exists, null otherwise
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > string< / span >
|
< span class = "param-type" > null< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getLinks" > < span class = "type-signature" > < / span > getLinks< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< div class = "description" >
Get list of links coming out of this note.
< / div >
2018-08-29 20:44:35 +02:00
< dl class = "details" >
2020-09-30 22:48:30 +02:00
< dt class = "important tag-deprecated" > Deprecated:< / dt > < dd > < ul class = "dummy" > < li > - not intended for general use< / li > < / ul > < / dd >
2018-08-29 20:44:35 +02:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line788" > line 788< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedAttribute" > < span class = "type-signature" > < / span > getOwnedAttribute< span class = "signature" > ()< / span > < span class = "type-signature" > → {< a href = "Attribute.html" > Attribute< / a > }< / span > < / h4 >
2018-11-08 23:49:44 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line250" > line 250< / a >
2018-11-08 23:49:44 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-11-08 23:49:44 +01:00
< h5 > Returns:< / h5 >
2020-09-30 22:48:30 +02:00
< div class = "param-desc" >
attribute belonging to this specific note (excludes inherited attributes)
This method can be significantly faster than the getAttribute()
< / div >
2018-11-08 23:49:44 +01:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Attribute.html" > Attribute< / a > < / span >
2018-11-08 23:49:44 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedAttributes" > < span class = "type-signature" > < / span > getOwnedAttributes< span class = "signature" > (type< span class = "signature-attributes" > opt< / span > , name< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< div class = "description" >
This method is a faster variant of getAttributes() which looks for only owned attributes.
Use when inheritance is not needed and/or in batch/performance sensitive operations.
< / div >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< h5 > Parameters:< / h5 >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< th > Type< / th >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< th > Attributes< / th >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< tbody >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< tr >
< td class = "name" > < code > type< / code > < / td >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< td class = "type" >
< span class = "param-type" > string< / span >
2019-09-07 22:03:08 +02:00
2020-09-30 22:48:30 +02:00
< / td >
2019-12-03 22:53:17 +01:00
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > (optional) attribute type to filter< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< td class = "attributes" >
< optional>< br >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< td class = "description last" > (optional) attribute name to filter< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< / tbody >
< / table >
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line226" > line 226< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
note's "owned" attributes - excluding inherited ones
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedAttributeValue" > < span class = "type-signature" > < / span > getOwnedAttributeValue< span class = "signature" > (type, name)< / span > < span class = "type-signature" > → {string|null}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > attribute type (label, relation, etc.)< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< tr >
< td class = "name" > < code > name< / code > < / td >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< / td >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< td class = "description last" > attribute name< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< / tbody >
< / table >
2018-08-29 20:44:35 +02:00
2019-02-20 22:24:51 +01:00
< dl class = "details" >
2018-08-29 20:44:35 +02:00
2019-02-20 22:24:51 +01:00
2018-08-29 20:44:35 +02:00
2019-02-20 22:24:51 +01:00
2018-08-29 20:44:35 +02:00
2019-02-20 22:24:51 +01:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line452" > line 452< / a >
2019-02-20 22:24:51 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2019-02-20 22:24:51 +01:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
attribute value of given type and name or null if no such attribute exists.
2019-02-20 22:24:51 +01:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > string< / span >
|
< span class = "param-type" > null< / span >
2019-02-20 22:24:51 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedLabel" > < span class = "type-signature" > < / span > getOwnedLabel< span class = "signature" > (name)< / span > < span class = "type-signature" > → {< a href = "Attribute.html" > Attribute< / a > |null}< / span > < / h4 >
2019-02-20 22:24:51 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
2018-08-29 20:44:35 +02:00
< span class = "param-type" > string< / span >
< / td >
2019-12-03 22:53:17 +01:00
< td class = "description last" > label name< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line590" > line 590< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
label if it exists, null otherwise
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Attribute.html" > Attribute< / a > < / span >
|
< span class = "param-type" > null< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedLabels" > < span class = "type-signature" > < / span > getOwnedLabels< span class = "signature" > (name< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2018-11-13 12:50:08 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
2019-12-03 22:53:17 +01:00
< td class = "description last" > label name to filter< / td >
2018-11-13 12:50:08 +01:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line299" > line 299< / a >
2018-11-13 12:50:08 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-11-13 12:50:08 +01:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
all note's labels (attributes with type label), excluding inherited ones
2018-11-13 12:50:08 +01:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2018-11-13 12:50:08 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedLabelValue" > < span class = "type-signature" > < / span > getOwnedLabelValue< span class = "signature" > (name)< / span > < span class = "type-signature" > → {string|null}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
2018-09-03 16:05:28 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2019-12-03 22:53:17 +01:00
< td class = "description last" > label name< / td >
2018-09-03 16:05:28 +02:00
< / tr >
< / tbody >
< / table >
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line614" > line 614< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
label value if label exists, null otherwise
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > string< / span >
|
< span class = "param-type" > null< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedRelation" > < span class = "type-signature" > < / span > getOwnedRelation< span class = "signature" > (name)< / span > < span class = "type-signature" > → {< a href = "Attribute.html" > Attribute< / a > |null}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2019-12-03 22:53:17 +01:00
< td class = "description last" > relation name< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line602" > line 602< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
relation if it exists, null otherwise
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Attribute.html" > Attribute< / a > < / span >
|
< span class = "param-type" > null< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedRelations" > < span class = "type-signature" > < / span > getOwnedRelations< span class = "signature" > (name< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2019-08-20 21:40:47 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > relation name to filter< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line315" > line 315< / a >
2019-08-20 21:40:47 +02:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
2019-12-03 22:53:17 +01:00
< div class = "param-desc" >
all note's relations (attributes with type relation), excluding inherited ones
< / div >
2019-08-20 21:40:47 +02:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2019-08-20 21:40:47 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedRelationTarget" > < span class = "type-signature" > < / span > getOwnedRelationTarget< span class = "signature" > (name)< / span > < span class = "type-signature" > → {< a href = "Note.html" > Note< / a > |null}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2019-12-03 22:53:17 +01:00
< td class = "description last" > < / td >
2018-08-29 20:44:35 +02:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line642" > line 642< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
target note of the relation or null (if target is empty or note was not found)
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Note.html" > Note< / a > < / span >
2019-12-03 22:53:17 +01:00
|
< span class = "param-type" > null< / span >
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getOwnedRelationValue" > < span class = "type-signature" > < / span > getOwnedRelationValue< span class = "signature" > (name)< / span > < span class = "type-signature" > → {string|null}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > relation name< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line626" > line 626< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
relation value if relation exists, null otherwise
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > string< / span >
|
< span class = "param-type" > null< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getParentNotes" > < span class = "type-signature" > < / span > getParentNotes< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< < a href = "Note.html" > Note< / a > >}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line841" > line 841< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
parent notes of this note (note can have multiple parents because of cloning)
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Note.html" > Note< / a > >< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getRelation" > < span class = "type-signature" > < / span > getRelation< span class = "signature" > (name)< / span > < span class = "type-signature" > → {< a href = "Attribute.html" > Attribute< / a > |null}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > relation name< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line596" > line 596< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
relation if it exists, null otherwise
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Attribute.html" > Attribute< / a > < / span >
|
< span class = "param-type" > null< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getRelations" > < span class = "type-signature" > < / span > getRelations< span class = "signature" > (name< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > relation name to filter< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line307" > line 307< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2020-09-30 22:48:30 +02:00
all note's relations (attributes with type relation), including inherited ones
2019-12-03 22:53:17 +01:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getRelationTarget" > < span class = "type-signature" > < / span > getRelationTarget< span class = "signature" > (name)< / span > < span class = "type-signature" > → {< a href = "Note.html" > Note< / a > |null}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2020-09-30 22:48:30 +02:00
< td class = "description last" > < / td >
2019-12-03 22:53:17 +01:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line632" > line 632< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2020-09-30 22:48:30 +02:00
target note of the relation or null (if target is empty or note was not found)
2019-12-03 22:53:17 +01:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > < a href = "Note.html" > Note< / a > < / span >
|
< span class = "param-type" > null< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getRelationTargets" > < span class = "type-signature" > < / span > getRelationTargets< span class = "signature" > (name< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > → {Array.< < a href = "Note.html" > Note< / a > >}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
2020-09-30 22:48:30 +02:00
< th > Attributes< / th >
2019-12-03 22:53:17 +01:00
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2020-09-30 22:48:30 +02:00
< td class = "attributes" >
< optional>< br >
< / td >
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
< td class = "description last" > relation name to filter< / td >
2019-12-03 22:53:17 +01:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line323" > line 323< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Note.html" > Note< / a > >< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getRelationValue" > < span class = "type-signature" > < / span > getRelationValue< span class = "signature" > (name)< / span > < span class = "type-signature" > → {string|null}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2020-09-30 22:48:30 +02:00
< td class = "description last" > relation name< / td >
2019-12-03 22:53:17 +01:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line620" > line 620< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
2020-09-30 22:48:30 +02:00
< div class = "param-desc" >
relation value if relation exists, null otherwise
< / div >
2019-12-03 22:53:17 +01:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > string< / span >
|
< span class = "param-type" > null< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getRevisions" > < span class = "type-signature" > < / span > getRevisions< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< < a href = "NoteRevision.html" > NoteRevision< / a > >}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
< div class = "description" >
Returns note revisions of this note.
< / div >
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
< dl class = "details" >
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
2020-09-30 22:48:30 +02:00
2019-12-03 22:53:17 +01:00
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line778" > line 778< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "NoteRevision.html" > NoteRevision< / a > >< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
< h4 class = "name" id = "getScriptEnv" > < span class = "type-signature" > < / span > getScriptEnv< span class = "signature" > ()< / span > < span class = "type-signature" > → {string}< / span > < / h4 >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line197" > line 197< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
JS script environment - either "frontend" or "backend"
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > string< / span >
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "getTargetRelations" > < span class = "type-signature" > < / span > getTargetRelations< span class = "signature" > ()< / span > < span class = "type-signature" > → {Array.< < a href = "Attribute.html" > Attribute< / a > >}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line259" > line 259< / a >
2019-12-03 22:53:17 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
relations targetting this specific note
2018-08-29 20:44:35 +02:00
< / div >
2019-12-03 22:53:17 +01:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > Array.< < a href = "Attribute.html" > Attribute< / a > >< / span >
2019-12-03 22:53:17 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "hasAttribute" > < span class = "type-signature" > < / span > hasAttribute< span class = "signature" > (type, name)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< / td >
< td class = "description last" > attribute type (label, relation, etc.)< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< td class = "description last" > attribute name< / td >
< / tr >
2018-08-29 20:44:35 +02:00
2019-12-03 22:53:17 +01:00
< / tbody >
< / table >
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line412" > line 412< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
2019-12-03 22:53:17 +01:00
< div class = "param-desc" >
true if note has an attribute with given type and name (including inherited)
< / div >
2018-08-29 20:44:35 +02:00
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > boolean< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "hasChildren" > < span class = "type-signature" > < / span > hasChildren< span class = "signature" > ()< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line808" > line 808< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
- true if note has children
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2019-12-03 22:53:17 +01:00
< span class = "param-type" > boolean< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "hasLabel" > < span class = "type-signature" > < / span > hasLabel< span class = "signature" > (name)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2018-11-08 23:49:44 +01:00
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > label name< / td >
< / tr >
< / tbody >
< / table >
2018-11-08 23:49:44 +01:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line560" > line 560< / a >
2018-11-08 23:49:44 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-11-08 23:49:44 +01:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
true if label exists (including inherited)
2018-11-08 23:49:44 +01:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > boolean< / span >
2018-11-08 23:49:44 +01:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "hasOwnedAttribute" > < span class = "type-signature" > < / span > hasOwnedAttribute< span class = "signature" > (type, name)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > attribute type (label, relation, etc.)< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > attribute name< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line421" > line 421< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
true if note has an attribute with given type and name (excluding inherited)
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > boolean< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "hasOwnedLabel" > < span class = "type-signature" > < / span > hasOwnedLabel< span class = "signature" > (name)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2018-09-03 16:05:28 +02:00
2019-12-03 22:53:17 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > label name< / td >
< / tr >
< / tbody >
< / table >
2018-09-03 16:05:28 +02:00
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line566" > line 566< / a >
2018-09-03 16:05:28 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-09-03 16:05:28 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
true if label exists (excluding inherited)
2018-09-03 16:05:28 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > boolean< / span >
2018-09-03 16:05:28 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "hasOwnedRelation" > < span class = "type-signature" > < / span > hasOwnedRelation< span class = "signature" > (name)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
2019-12-03 22:53:17 +01:00
< td class = "description last" > relation name< / td >
2018-08-29 20:44:35 +02:00
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line578" > line 578< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
2019-12-03 22:53:17 +01:00
true if relation exists (excluding inherited)
2018-08-29 20:44:35 +02:00
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > boolean< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "hasRelation" > < span class = "type-signature" > < / span > hasRelation< span class = "signature" > (name)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2018-08-29 20:44:35 +02:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "description last" > relation name< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line572" > line 572< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
true if relation exists (including inherited)
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > boolean< / span >
2018-08-29 20:44:35 +02:00
< / dd >
< / dl >
< h4 class = "name" id = "invalidateAttributeCache" > < span class = "type-signature" > < / span > invalidateAttributeCache< span class = "signature" > ()< / span > < span class = "type-signature" > < / span > < / h4 >
< div class = "description" >
Clear note's attributes cache to force fresh reload for next attribute request.
Cache is note instance scoped.
< / div >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line338" > line 338< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2019-11-27 23:07:10 +01:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "isDescendantOfNote" > < span class = "type-signature" > < / span > isDescendantOfNote< span class = "signature" > (ancestorNoteId)< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
2019-11-27 23:07:10 +01:00
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > ancestorNoteId< / code > < / td >
< td class = "type" >
< / td >
< td class = "description last" > < / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line886" > line 886< / a >
2019-11-27 23:07:10 +01:00
< / li > < / ul > < / dd >
< / dl >
< h5 > Returns:< / h5 >
< div class = "param-desc" >
- true if ancestorNoteId occurs in at least one of the note's paths
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
2020-09-30 22:48:30 +02:00
< span class = "param-type" > boolean< / span >
2019-11-27 23:07:10 +01:00
< / dd >
< / dl >
2018-08-29 20:44:35 +02:00
< h4 class = "name" id = "isHtml" > < span class = "type-signature" > < / span > isHtml< span class = "signature" > ()< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line187" > line 187< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
true if this note is HTML
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > boolean< / span >
< / dd >
< / dl >
< h4 class = "name" id = "isJavaScript" > < span class = "type-signature" > < / span > isJavaScript< span class = "signature" > ()< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line179" > line 179< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
true if this note is JavaScript (code or attachment)
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > boolean< / span >
< / dd >
< / dl >
< h4 class = "name" id = "isJson" > < span class = "type-signature" > < / span > isJson< span class = "signature" > ()< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line174" > line 174< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
true if this note is of application/json content type
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > boolean< / span >
< / dd >
< / dl >
< h4 class = "name" id = "isRoot" > < span class = "type-signature" > < / span > isRoot< span class = "signature" > ()< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line169" > line 169< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
true if this note is the root of the note tree. Root note has "root" noteId
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > boolean< / span >
< / dd >
< / dl >
2019-02-20 22:24:51 +01:00
< h4 class = "name" id = "isStringNote" > < span class = "type-signature" > < / span > isStringNote< span class = "signature" > ()< / span > < span class = "type-signature" > → {boolean}< / span > < / h4 >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line192" > line 192< / a >
2019-02-20 22:24:51 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2019-02-20 22:24:51 +01:00
< h5 > Returns:< / h5 >
< div class = "param-desc" >
true if the note has string content (not binary)
< / div >
< dl >
< dt >
Type
< / dt >
< dd >
< span class = "param-type" > boolean< / span >
< / dd >
< / dl >
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "removeAttribute" > < span class = "type-signature" > < / span > removeAttribute< span class = "signature" > (type, name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
Removes given attribute name-value pair if it exists.
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > attribute type (label, relation, etc.)< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > attribute name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > attribute value (optional)< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line515" > line 515< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "removeLabel" > < span class = "type-signature" > < / span > removeLabel< span class = "signature" > (name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
2018-08-29 20:44:35 +02:00
< div class = "description" >
Remove label name-value pair, if it exists.
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > label name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > label value< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line688" > line 688< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "removeRelation" > < span class = "type-signature" > < / span > removeRelation< span class = "signature" > (name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
Remove relation name-value pair, if it exists.
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > relation name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > relation value (noteId)< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line696" > line 696< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "setAttribute" > < span class = "type-signature" > < / span > setAttribute< span class = "signature" > (type, name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
2019-11-08 22:34:30 +01:00
Update's given attribute's value or creates it if it doesn't exist
2018-08-29 20:44:35 +02:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > attribute type (label, relation, etc.)< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > attribute name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > attribute value (optional)< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line482" > line 482< / a >
2019-02-20 22:24:51 +01:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2019-02-20 22:24:51 +01:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "setLabel" > < span class = "type-signature" > < / span > setLabel< span class = "signature" > (name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
2019-11-08 22:34:30 +01:00
Update's given label's value or creates it if it doesn't exist
2018-08-29 20:44:35 +02:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > label name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > label value< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line672" > line 672< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "setRelation" > < span class = "type-signature" > < / span > setRelation< span class = "signature" > (name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
2019-11-08 22:34:30 +01:00
Update's given relation's value or creates it if it doesn't exist
2018-08-29 20:44:35 +02:00
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > relation name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > relation value (noteId)< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line680" > line 680< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "toggleAttribute" > < span class = "type-signature" > < / span > toggleAttribute< span class = "signature" > (type, enabled, name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
Based on enabled, attribute is either set or removed.
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > type< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > attribute type ('relation', 'label' etc.)< / td >
< / tr >
< tr >
< td class = "name" > < code > enabled< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > toggle On or Off< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > attribute name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > attribute value (optional)< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line466" > line 466< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "toggleLabel" > < span class = "type-signature" > < / span > toggleLabel< span class = "signature" > (enabled, name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
Based on enabled, label is either set or removed.
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > enabled< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > toggle On or Off< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > label name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > label value (optional)< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line655" > line 655< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
2020-09-30 22:48:30 +02:00
< h4 class = "name" id = "toggleRelation" > < span class = "type-signature" > < / span > toggleRelation< span class = "signature" > (enabled, name, value< span class = "signature-attributes" > opt< / span > )< / span > < span class = "type-signature" > < / span > < / h4 >
2018-08-29 20:44:35 +02:00
< div class = "description" >
Based on enabled, relation is either set or removed.
< / div >
< h5 > Parameters:< / h5 >
< table class = "params" >
< thead >
< tr >
< th > Name< / th >
< th > Type< / th >
< th > Attributes< / th >
< th class = "last" > Description< / th >
< / tr >
< / thead >
< tbody >
< tr >
< td class = "name" > < code > enabled< / code > < / td >
< td class = "type" >
< span class = "param-type" > boolean< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > toggle On or Off< / td >
< / tr >
< tr >
< td class = "name" > < code > name< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< / td >
< td class = "description last" > relation name< / td >
< / tr >
< tr >
< td class = "name" > < code > value< / code > < / td >
< td class = "type" >
< span class = "param-type" > string< / span >
< / td >
< td class = "attributes" >
< optional>< br >
< / td >
< td class = "description last" > relation value (noteId)< / td >
< / tr >
< / tbody >
< / table >
< dl class = "details" >
< dt class = "tag-source" > Source:< / dt >
< dd class = "tag-source" > < ul class = "dummy" > < li >
2020-09-30 22:48:30 +02:00
< a href = "entities_note.js.html" > entities/note.js< / a > , < a href = "entities_note.js.html#line664" > line 664< / a >
2018-08-29 20:44:35 +02:00
< / li > < / ul > < / dd >
< / dl >
2019-08-20 21:40:47 +02:00
2018-08-29 20:44:35 +02:00
< / article >
< / section >
< / div >
< nav >
2019-08-20 21:40:47 +02:00
< h2 > < a href = "index.html" > Home< / a > < / h2 > < h3 > Classes< / h3 > < ul > < li > < a href = "ApiToken.html" > ApiToken< / a > < / li > < li > < a href = "Attribute.html" > Attribute< / a > < / li > < li > < a href = "BackendScriptApi.html" > BackendScriptApi< / a > < / li > < li > < a href = "Branch.html" > Branch< / a > < / li > < li > < a href = "Entity.html" > Entity< / a > < / li > < li > < a href = "Note.html" > Note< / a > < / li > < li > < a href = "NoteRevision.html" > NoteRevision< / a > < / li > < li > < a href = "Option.html" > Option< / a > < / li > < li > < a href = "RecentNote.html" > RecentNote< / a > < / li > < / ul > < h3 > < a href = "global.html" > Global< / a > < / h3 >
2018-08-29 20:44:35 +02:00
< / nav >
< br class = "clear" >
< footer >
2020-09-30 22:48:30 +02:00
Documentation generated by < a href = "https://github.com/jsdoc/jsdoc" > JSDoc 3.6.6< / a >
2018-08-29 20:44:35 +02:00
< / footer >
< script > prettyPrint ( ) ; < / script >
< script src = "scripts/linenumber.js" > < / script >
< / body >
< / html >