EditorCommandHandlerConstructorParams
Parameters for creating an editor command handler.
Import:
import type { EditorCommandHandlerConstructorParams } from 'obsidian-dev-utils/obsidian/command-handlers/editor-command-handler';Signature:
export interface EditorCommandHandlerConstructorParams extends CommandHandlerConstructorParamsExtends: CommandHandlerConstructorParams
Properties
| Property | Type | Description |
|---|---|---|
| editorMenuItemName? | string | undefined | The item name to use in the editor menu. |
| editorMenuSection? | string | undefined | The section to use in the editor menu. |
| editorMenuSubmenuIcon? | IconName | undefined | The icon to use in the editor menu submenu. |
| icon | IconName | The icon for the command. (Inherited from CommandHandlerConstructorParams) |
| id | string | The ID of the command. (Inherited from CommandHandlerConstructorParams) |
| name | string | The display name of the command. (Inherited from CommandHandlerConstructorParams) |
| shouldAddCommandToSubmenu? | boolean | undefined | Whether to add the command to a submenu. |