Skip to content

Commit

Permalink
feat: View cell contents in context menu (#1657)
Browse files Browse the repository at this point in the history
Resolves #1605
  • Loading branch information
dsmmcken authored Nov 27, 2023
1 parent 6083173 commit 90b7517
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,8 @@ class IrisGridContextMenuHandler extends GridMouseHandler {

static GROUP_FORMAT = ContextActions.groups.high + 150;

static GROUP_VIEW_CONTENTS = ContextActions.groups.high + 175;

static COLUMN_SORT_DIRECTION = {
ascending: 'ASC',
descending: 'DESC',
Expand Down Expand Up @@ -646,6 +648,21 @@ class IrisGridContextMenuHandler extends GridMouseHandler {
});
}

actions.push({
title: 'View Cell Contents',
group: IrisGridContextMenuHandler.GROUP_VIEW_CONTENTS,
order: 10,
action: () => {
irisGrid.setState({
showOverflowModal: true,
overflowText: irisGrid.getValueForCell(
columnIndex,
rowIndex
) as string,
});
},
});

return actions;
}

Expand Down

0 comments on commit 90b7517

Please sign in to comment.