I am trying to get a cell in my row/column grid to display as an empty cell or blank content given a certain case and as a CellRenderer type in another case. Currently I am doing:
cellRendererSelector: function (params) {
const exampleCheckBox = {
component: 'exampleCheckboxCellRenderer',
params: {values: ['true', 'false']}
};
if (params.data.exampleField) {
return exampleCheckBox;
} else {
return null; // HERE: null sets the string value of that field as a default cell
}
},
In my else case above I want to return or show an empty cell or a cell with an empty string. Returning null only returns a default basic cell with the field value as a string.