Skip to content

Commit

Permalink
feat: add custom context menu rendering (#7409)
Browse files Browse the repository at this point in the history
  • Loading branch information
BeksOmega authored Aug 17, 2023
1 parent 60aa99a commit cb0f703
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/contextmenu_registry.ts
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export namespace ContextMenuRegistry {
export interface RegistryItem {
callback: (p1: Scope) => void;
scopeType: ScopeType;
displayText: ((p1: Scope) => string) | string;
displayText: ((p1: Scope) => string | HTMLElement) | string | HTMLElement;
preconditionFn: (p1: Scope) => string;
weight: number;
id: string;
Expand All @@ -147,7 +147,7 @@ export namespace ContextMenuRegistry {
* A menu item as presented to contextmenu.js.
*/
export interface ContextMenuOption {
text: string;
text: string | HTMLElement;
enabled: boolean;
callback: (p1: Scope) => void;
scope: Scope;
Expand Down

0 comments on commit cb0f703

Please sign in to comment.