Skip to content

Commit

Permalink
GROK-17359: Grid: ability for the renderer to define the context valu…
Browse files Browse the repository at this point in the history
…e to show in the context panel
  • Loading branch information
skalkin committed Jan 11, 2025
1 parent 7255905 commit e9a5479
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/PowerGrid/src/sparklines/sparklines-lines.ts
Original file line number Diff line number Diff line change
Expand Up @@ -188,4 +188,9 @@ export class SparklineCellRenderer extends DG.GridCellRenderer {

return ui.inputs([normalizeInput, ...createBaseInputs(gridColumn, settings)]);
}

hasContextValue(gridCell: DG.GridCell): boolean { return true; }
async getContextValue (gridCell: DG.GridCell): Promise<any> {
return DG.GridCellWidget.fromGridCell(gridCell).root;
}
}

0 comments on commit e9a5479

Please sign in to comment.