Skip to content

Commit 90b7517

Browse files
authored
feat: View cell contents in context menu (#1657)
Resolves #1605
1 parent 6083173 commit 90b7517

1 file changed

Lines changed: 17 additions & 0 deletions

File tree

packages/iris-grid/src/mousehandlers/IrisGridContextMenuHandler.tsx

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,8 @@ class IrisGridContextMenuHandler extends GridMouseHandler {
7979

8080
static GROUP_FORMAT = ContextActions.groups.high + 150;
8181

82+
static GROUP_VIEW_CONTENTS = ContextActions.groups.high + 175;
83+
8284
static COLUMN_SORT_DIRECTION = {
8385
ascending: 'ASC',
8486
descending: 'DESC',
@@ -646,6 +648,21 @@ class IrisGridContextMenuHandler extends GridMouseHandler {
646648
});
647649
}
648650

651+
actions.push({
652+
title: 'View Cell Contents',
653+
group: IrisGridContextMenuHandler.GROUP_VIEW_CONTENTS,
654+
order: 10,
655+
action: () => {
656+
irisGrid.setState({
657+
showOverflowModal: true,
658+
overflowText: irisGrid.getValueForCell(
659+
columnIndex,
660+
rowIndex
661+
) as string,
662+
});
663+
},
664+
});
665+
649666
return actions;
650667
}
651668

0 commit comments

Comments
 (0)