Skip to content

Commit

Permalink
#1073 only show supported cell renderers for boolean columns
Browse files Browse the repository at this point in the history
  • Loading branch information
junaidzm13 committed Jan 2, 2024
1 parent 6f3e17c commit d59cca9
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const stringCellRenderers: CellRendererDescriptor[] = [
...getRegisteredCellRenderers("string"),
];

const booleanCellRenderers: CellRendererDescriptor[] = [
...getRegisteredCellRenderers("boolean"),
];

const getAvailableCellRenderers = (
column: ColumnDescriptor
): CellRendererDescriptor[] => {
Expand All @@ -64,6 +68,8 @@ const getAvailableCellRenderers = (
return integerCellRenderers;
case "double":
return doubleCellRenderers;
case "boolean":
return booleanCellRenderers;
default:
return stringCellRenderers;
}
Expand Down

0 comments on commit d59cca9

Please sign in to comment.