Class: RemNamespace
Hierarchy
NamespaceBase
↳
RemNamespace
Methods
createLinkRem
▸ createLinkRem(url
, addTitle?
): Promise
<undefined
| Rem
>
Parameters
Name | Type | Default value |
---|---|---|
url | string | undefined |
addTitle | boolean | true |
Returns
Promise
<undefined
| Rem
>
createPortal
▸ createPortal(): Promise
<undefined
| Rem
>
Returns
Promise
<undefined
| Rem
>
createRem
▸ createRem(): Promise
<undefined
| Rem
>
Returns
Promise
<undefined
| Rem
>
createSingleRemWithMarkdown
▸ createSingleRemWithMarkdown(markdown
, parentId?
): Promise
<undefined
| Rem
>
Parameters
Name | Type |
---|---|
markdown | string |
parentId? | string |
Returns
Promise
<undefined
| Rem
>
createTable
▸ createTable(existingTag?
): Promise
<undefined
| Rem
>
Parameters
Name | Type |
---|---|
existingTag? | string | Rem |
Returns
Promise
<undefined
| Rem
>
createTreeWithMarkdown
▸ createTreeWithMarkdown(markdown
, parentId?
): Promise
<Rem
[]>
Parameters
Name | Type |
---|---|
markdown | string |
parentId? | string |
Returns
Promise
<Rem
[]>
findByName
▸ findByName(name
, parentId
): Promise
<undefined
| Rem
>
Parameters
Name | Type |
---|---|
name | RichTextInterface |
parentId | null | string |
Returns
Promise
<undefined
| Rem
>
findMany
▸ findMany(rs
): Promise
<undefined
| Rem
[]>
Parameters
Name | Type |
---|---|
rs | string [] | Rem [] |
Returns
Promise
<undefined
| Rem
[]>
findOne
▸ findOne(remId
): Promise
<undefined
| Rem
>
Parameters
Name | Type |
---|---|
remId | undefined | string |
Returns
Promise
<undefined
| Rem
>
getAll
▸ getAll(): Promise
<Rem
[]>
Returns
Promise
<Rem
[]>
moveRems
▸ moveRems(rems
, newParent
, positionAmongstSiblings
, portal?
): Promise
<void
>
Parameters
Name | Type |
---|---|
rems | string [] | Rem [] |
newParent | string | Rem |
positionAmongstSiblings | number |
portal? | string | Rem |
Returns
Promise
<void
>