Skip to content

BlockSuite API Documentation / @blocksuite/blocks / TemplateManager

Interface: TemplateManager

Methods

categories()

categories(): string[] | Promise<string[]>

Returns

string[] | Promise<string[]>

Source

packages/blocks/src/page-block/edgeless/components/toolbar/template/template-type.ts:19


extend()?

optional extend(manager): void

Parameters

manager: TemplateManager

Returns

void

Source

packages/blocks/src/page-block/edgeless/components/toolbar/template/template-type.ts:23


list()

list(category): Template[] | Promise<Template[]>

Parameters

category: string

Returns

Template[] | Promise<Template[]>

Source

packages/blocks/src/page-block/edgeless/components/toolbar/template/template-type.ts:17


search(keyword, category?): Template[] | Promise<Template[]>

Parameters

keyword: string

category?: string

Returns

Template[] | Promise<Template[]>

Source

packages/blocks/src/page-block/edgeless/components/toolbar/template/template-type.ts:21


Generated using TypeDoc and typedoc-plugin-markdown.