Skip to content

Commit 577c493

Browse files
Merge pull request #482 from silevis/fix/customize-context-menu
V4: Allow passing JSX to MenuOption label
2 parents f296b7e + 11ffdc5 commit 577c493

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/lib/Model/PublicModel.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -626,8 +626,8 @@ export interface Row<TCell extends Cell = DefaultCellTypes> {
626626
export interface MenuOption {
627627
/** Text that identifies each menu option */
628628
id: string;
629-
/** Text label displayed as its title */
630-
label: string;
629+
/** Label displayed as its title */
630+
label: React.ReactNode;
631631
/**
632632
* Function that is called when an option is clicked
633633
*
@@ -643,4 +643,4 @@ export interface MenuOption {
643643
export interface ReactGridInstance extends React.Component<ReactGridProps, any, any> {
644644
/** This method is used to clear the selected item */
645645
clearSelections(): void;
646-
}
646+
}

0 commit comments

Comments
 (0)