mirror of
https://github.com/apache/superset.git
synced 2026-04-18 23:55:00 +00:00
feat: Implement context menu for drill by (#23454)
This commit is contained in:
committed by
GitHub
parent
542bf25729
commit
9fbfd1c1d8
@@ -478,10 +478,27 @@ export default function PivotTableChart(props: PivotTableProps) {
|
||||
onContextMenu(e.clientX, e.clientY, {
|
||||
drillToDetail: drillToDetailFilters,
|
||||
crossFilter: getCrossFilterDataMask(dataPoint),
|
||||
drillBy: dataPoint && {
|
||||
filters: [
|
||||
{
|
||||
col: Object.keys(dataPoint)[0],
|
||||
op: '==',
|
||||
val: Object.values(dataPoint)[0],
|
||||
},
|
||||
],
|
||||
groupbyFieldName: rowKey ? 'groupbyRows' : 'groupbyColumns',
|
||||
},
|
||||
});
|
||||
}
|
||||
},
|
||||
[cols, dateFormatters, onContextMenu, rows, timeGrainSqla],
|
||||
[
|
||||
cols,
|
||||
dateFormatters,
|
||||
getCrossFilterDataMask,
|
||||
onContextMenu,
|
||||
rows,
|
||||
timeGrainSqla,
|
||||
],
|
||||
);
|
||||
|
||||
return (
|
||||
|
||||
Reference in New Issue
Block a user