ContextMenuContext
Provides full details about current cell (and selected cells) where the Context Menu will appear
export interface ContextMenuContext<TData = any> extendsExtends
Properties
| Property | Description |
|---|---|
| adaptableColumn | Current AdapTable Column |
| agGridColumn | Current AG Grid Column |
| gridCell | Cell that has been clicked; contains cell value |
| isGroupedNode | Whether current AG Grid row node is grouped |
| isRowGroupColumn | Whether current Column is Row Grouped |
| isSelectedCell | Whether cell that was clicked is also currently selected |
| isSelectedRow | Whether cell that was clicked is in a Row that is currently selected |
| isSingleSelectedCell | Whether the clicked cell is the only selected cell |
| isSingleSelectedColumn | Whether Column that was clicked is only column with selected cells |
| primaryKeyValue | Value of Primary Key column in current row |
| rowNode | Current AG Grid row node |
| selectedCellInfo | Currently selected cells in the grid |
| selectedRowInfo | Currently selected rows in the grid |
| adaptableContext | Custom application Context provided in AdaptableOptions.adaptableContext |
Property Details
adaptableColumn
Current AdapTable Column
adaptableColumn: AdaptableColumn<TData>;Property Value
AdaptableColumn<TData>
agGridColumn
Current AG Grid Column
agGridColumn: Column;Property Value
Column
gridCell
Cell that has been clicked; contains cell value
gridCell: GridCell<TData>;Property Value
GridCell<TData>
isGroupedNode
Whether current AG Grid row node is grouped
isGroupedNode: boolean;Property Value
boolean
isRowGroupColumn
Whether current Column is Row Grouped
isRowGroupColumn: boolean;Property Value
boolean
isSelectedCell
Whether cell that was clicked is also currently selected
isSelectedCell: boolean;Property Value
boolean
isSelectedRow
Whether cell that was clicked is in a Row that is currently selected
isSelectedRow: boolean;Property Value
boolean
isSingleSelectedCell
Whether the clicked cell is the only selected cell
isSingleSelectedCell: boolean;Property Value
boolean
isSingleSelectedColumn
Whether Column that was clicked is only column with selected cells
isSingleSelectedColumn: boolean;Property Value
boolean
primaryKeyValue
Value of Primary Key column in current row
primaryKeyValue: any;Property Value
any
rowNode
Current AG Grid row node
rowNode: IRowNode<TData>;Property Value
IRowNode<TData>
selectedCellInfo
Currently selected cells in the grid
selectedCellInfo: SelectedCellInfo<TData>;Property Value
SelectedCellInfo<TData>
selectedRowInfo
Currently selected rows in the grid
selectedRowInfo: SelectedRowInfo<TData>;Property Value
SelectedRowInfo<TData>
adaptableContext
Inherited from BaseContext
Custom application Context provided in AdaptableOptions.adaptableContext
adaptableContext: any;Property Value
any