Skip to content

Documentation / joplin-api / NoteExtApi

Class: NoteExtApi

Constructors

new NoteExtApi()

new NoteExtApi(ajax): NoteExtApi

Parameters

ajax: Ajax

Returns

NoteExtApi

Defined in

api/NoteExtApi.ts:10

Methods

move()

move(id, parentId): Promise<NoteUpdateRes>

将笔记移动到指定目录

Parameters

id: string

parentId: string

Returns

Promise<NoteUpdateRes>

Defined in

api/NoteExtApi.ts:28


rename()

rename(id, title): Promise<NoteUpdateRes>

重命名笔记

Parameters

id: string

title: string

Returns

Promise<NoteUpdateRes>

Defined in

api/NoteExtApi.ts:19


toggleTodo()

toggleTodo(id, completed?): Promise<void>

切换 to-do 的状态

Parameters

id: string

completed?: IntBool

Returns

Promise<void>

Defined in

api/NoteExtApi.ts:37

Released under the MIT License.