Skip to content

Commit efba92c

Browse files
committed
Add formatColorForCell to model
1 parent da5892b commit efba92c

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
@@ -511,6 +511,14 @@ class UITableModel extends IrisGridModel {
511511
);
512512
}
513513

514+
formatColorForCell(column: ModelIndex, row: ModelIndex): string | null {
515+
const color = this.getFormatOptionForCell(column, row, 'color');
516+
if (color != null) {
517+
return this.colorMap.get(color) ?? color;
518+
}
519+
return null;
520+
}
521+
514522
override colorForCell(
515523
column: ModelIndex,
516524
row: ModelIndex,

0 commit comments

Comments
 (0)