BlockSuite API Documentation / @blocksuite/blocks / TemplateManager
Interface: TemplateManager
Methods
categories()
categories():
string
[] |Promise
<string
[]>
Returns
string
[] | Promise
<string
[]>
Defined in
packages/blocks/src/root-block/edgeless/components/toolbar/template/template-type.ts:37
extend()?
optional
extend(manager
):void
Parameters
• manager: TemplateManager
Returns
void
Defined in
packages/blocks/src/root-block/edgeless/components/toolbar/template/template-type.ts:41
list()
Parameters
• category: string
Returns
Template
[] | Promise
<Template
[]>
Defined in
packages/blocks/src/root-block/edgeless/components/toolbar/template/template-type.ts:35
search()
search(
keyword
,category
?):Template
[] |Promise
<Template
[]>
Parameters
• keyword: string
• category?: string
Returns
Template
[] | Promise
<Template
[]>
Defined in
packages/blocks/src/root-block/edgeless/components/toolbar/template/template-type.ts:39