BlockSuite API Documentation / @blocksuite/blocks / MenuOptions
Type Alias: MenuOptions
MenuOptions:
object
Type declaration
items
items:
MenuConfig
[]
onClose()?
optional
onClose: () =>void
Returns
void
onComplete()?
optional
onComplete: () =>void
Returns
void
search?
optional
search:object
search.placeholder?
optional
search.placeholder:string
title?
optional
title:object
title.onBack()?
optional
title.onBack: (menu
) =>void
Parameters
menu
Menu
Returns
void
title.onClose()?
optional
title.onClose: () =>void
Returns
void
title.postfix()?
optional
title.postfix: () =>TemplateResult
Returns
TemplateResult
title.text
title.text:
string
Defined in
packages/affine/components/dist/context-menu/menu.d.ts:61