feat:add context menu
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export interface IContextMenuContext {
|
||||
editorHasSelection: boolean;
|
||||
editorTextFocus: boolean;
|
||||
isInTable: boolean;
|
||||
}
|
||||
|
||||
export interface IRegisterContextMenu {
|
||||
isDivider?: boolean;
|
||||
icon?: string;
|
||||
name?: string;
|
||||
shortCut?: string;
|
||||
when?: (payload: IContextMenuContext) => boolean;
|
||||
callback?: Function;
|
||||
childMenus?: IRegisterContextMenu[];
|
||||
}
|
||||
Reference in New Issue
Block a user