Skip to content

Commit 1d090d9

Browse files
committed
Add formatColorForCell to model
1 parent 9f279ae commit 1d090d9

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

plugins/ui/src/js/src/elements/UITable/UITableModel.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -514,6 +514,14 @@ class UITableModel extends IrisGridModel {
514514
);
515515
}
516516

517+
formatColorForCell(column: ModelIndex, row: ModelIndex): string | null {
518+
const color = this.getFormatOptionForCell(column, row, 'color');
519+
if (color != null) {
520+
return this.colorMap.get(color) ?? color;
521+
}
522+
return null;
523+
}
524+
517525
override colorForCell(
518526
column: ModelIndex,
519527
row: ModelIndex,

0 commit comments

Comments
 (0)