gregnb / gregnb/mui-datatables

Is there a way to add Customized Header Labels, like multiline headers?

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

Description

Is there a way to add Customized Header Labels, like multiline headers?

## Expected Behavior

I want to add two show two column data in one column, thus for rendering data, I can use render body and show multiple column values. but how do I add two labels in one column header?

## Current Behavior
I tried doing this:
const name= "

""
"Name"
""
""
"Id"
""
"
{ name: "dateTime", label: name},

but sorting fails by Maximum call stack size exceeded
Note: i was not able to put "div", ignore the "" above.

## Steps to Reproduce (for bugs)

## Your Environment
![image](https://user-images.githubusercontent.com/11206794/78888896-37df3900-7a80-11ea-91d1-4429179034da.png)

| Tech | Version |
|--------------|---------|
| Material-UI | |
| MUI-datatables | |
| React | |
| browser | |
| etc | |

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.