gregnb / gregnb/mui-datatables

Default value when cell is empty?

Open
#1,256 2 comments 1 reaction 0 assignees View on GitHub
Dominant language
JavaScript
Stars
2.7k
Forks
906
PR merge metrics
No merged PRs in 30d

Description

## Expected Behavior

Is there a way to set a "default value" when a cell is empty?

The feature would be similar to this jQuery datatables:
https://datatables.net/reference/option/columns.defaultContent

## Current Behavior
Empty cells are currently empty by default, but the table looks broken to some users, so a default dash value would be more meaningful.

## Steps to Reproduce (for bugs)
N/A

## Your Environment

| Tech | Version |
|--------------|---------|
| Material-UI | 4.9.10 |
| MUI-datatables | 2.14.0 |
| React | 16.13.1 |
| browser | Chrome |

Example of empty cells:

![image](https://user-images.githubusercontent.com/1320083/79304485-53927700-7ea6-11ea-8d59-0256f58bd1ee.png)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.