BlockSuite API Documentation / @blocksuite/affine-widget-slash-menu / SlashMenuConfig
Type Alias: SlashMenuConfig
SlashMenuConfig =
object
Defined in: affine/widgets/widget-slash-menu/src/types.ts:49
Properties
disableWhen()?
optional
disableWhen: (ctx
) =>boolean
Defined in: affine/widgets/widget-slash-menu/src/types.ts:58
Slash menu will not be triggered when the condition is true.
Parameters
ctx
Returns
boolean
items
items:
SlashMenuItem
[] | (ctx
) =>SlashMenuItem
[]
Defined in: affine/widgets/widget-slash-menu/src/types.ts:53
The items in the slash menu. It can be generated dynamically with the context.