mirror of
https://github.com/ToolJet/ToolJet
synced 2026-05-24 09:28:31 +00:00
Expose row data to table widget column popover (#2501)
This commit is contained in:
parent
4bfc2c7c1c
commit
966428095b
1 changed files with 2 additions and 1 deletions
|
|
@ -352,12 +352,13 @@ export function Table({
|
|||
Cell: function (cell) {
|
||||
const rowChangeSet = changeSet ? changeSet[cell.row.index] : null;
|
||||
const cellValue = rowChangeSet ? rowChangeSet[column.name] || cell.value : cell.value;
|
||||
const rowData = tableData[cell.row.index];
|
||||
|
||||
switch (columnType) {
|
||||
case 'string':
|
||||
case undefined:
|
||||
case 'default': {
|
||||
const textColor = resolveReferences(column.textColor, currentState, '', { cellValue });
|
||||
const textColor = resolveReferences(column.textColor, currentState, '', { cellValue, rowData });
|
||||
|
||||
const cellStyles = {
|
||||
color: textColor ?? '',
|
||||
|
|
|
|||
Loading…
Reference in a new issue