BlockSuite API Documentation / @blocksuite/blocks / MenuOptions
Type Alias: MenuOptions
MenuOptions:
object
Type declaration
input?
optional
input:object
input.divider?
optional
input.divider:boolean
input.icon?
optional
input.icon:TemplateResult
input.initValue?
optional
input.initValue:string
input.left?
optional
input.left:TemplateResult
input.onComplete()?
optional
input.onComplete: (text
) =>void
Parameters
• text: string
Returns
void
input.placeholder?
optional
input.placeholder:string
input.right?
optional
input.right:TemplateResult
input.search?
optional
input.search:boolean
items
items:
Menu
[]
onClose()?
optional
onClose: () =>void
Returns
void
onComplete()?
optional
onComplete: () =>void
Returns
void
style?
optional
style:string
Defined in
packages/affine/components/dist/context-menu/menu.d.ts:53