Skip to content

Commit

Permalink
feat: View cell contents in context menu
Browse files Browse the repository at this point in the history
Resolves #1605
  • Loading branch information
dsmmcken committed Nov 24, 2023
1 parent 6083173 commit 203ef8d
Showing 1 changed file with 14 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,18 @@ 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,

Check failure on line 658 in packages/iris-grid/src/mousehandlers/IrisGridContextMenuHandler.tsx

View workflow job for this annotation

GitHub Actions / unit

Replace `columnIndex,·rowIndex` with `⏎············columnIndex,⏎············rowIndex⏎··········`

Check failure on line 658 in packages/iris-grid/src/mousehandlers/IrisGridContextMenuHandler.tsx

View workflow job for this annotation

GitHub Actions / unit

Replace `columnIndex,·rowIndex` with `⏎············columnIndex,⏎············rowIndex⏎··········`
});
},
});

return actions;
}

Expand Down

0 comments on commit 203ef8d

Please sign in to comment.