BlockSuite API Documentation / @blocksuite/blocks / TemplateManager
Interface: TemplateManager
Methods
categories()
categories():
Promise
<string
[]>
Returns
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
):Promise
<Template
[]>
Parameters
• category: string
Returns
Promise
<Template
[]>
Source
packages/blocks/src/page-block/edgeless/components/toolbar/template/template-type.ts:17
search()
search(
keyword
,category
?):Promise
<Template
[]>
Parameters
• keyword: string
• category?: string
Returns
Promise
<Template
[]>
Source
packages/blocks/src/page-block/edgeless/components/toolbar/template/template-type.ts:21
Generated using TypeDoc and typedoc-plugin-markdown.