File tree Expand file tree Collapse file tree
packages/iris-grid/src/mousehandlers Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments