BlockSuite API Documentation / @blocksuite/blocks / AdvancedMenuItem
Type Alias: AdvancedMenuItem<T>
AdvancedMenuItem<
T
>:Omit
<MenuItem
,"action"
|"disabled"
> &object
Type declaration
action()?
optional
action: (context
) =>void
|Promise
<void
>
Parameters
• context: T
Returns
void
| Promise
<void
>
disabled?
optional
disabled:boolean
| (context
) =>boolean
generate()?
optional
generate: (context
) =>MenuItemPart
|void
Parameters
• context: T
Returns
MenuItemPart
| void
when()?
optional
when: (context
) =>boolean
Parameters
• context: T
Returns
boolean
Type Parameters
• T
Defined in
packages/affine/components/dist/toolbar/types.d.ts:13