Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The header of columns in table can img? #370

Open
shine1935 opened this issue Mar 19, 2019 · 3 comments
Open

The header of columns in table can img? #370

shine1935 opened this issue Mar 19, 2019 · 3 comments

Comments

@shine1935
Copy link

when I use the table ,I hope the header of the columns is img, but when i used function return a img ,the warning is Failed prop type: Invalid prop headerRows[0][0].header.label of type function supplied to Header, expected string.so, How can i do can make the header is a img?

@bebraw
Copy link
Member

bebraw commented Mar 19, 2019

Hi,

I think you might have to implement a custom Header or we would have to extend the current one. The design would need a fundamental change to allow this and I don't currently have the time/money to do this properly. A PR would be welcome, though, and I can review/merge for sure. 👍

@bebraw
Copy link
Member

bebraw commented Mar 25, 2019

I realized there might be a way. Check out https://reactabular.js.org/#/table/overriding-default-renderers . You could override the default renderer and inject the behavior there likely.

@shine1935
Copy link
Author

I realized there might be a way. Check out https://reactabular.js.org/#/table/overriding-default-renderers . You could override the default renderer and inject the behavior there likely.

Hi , thank you firstly, I make a try with the https://reactabular.js.org/#/table/overriding-default-renderers .but I always make it success.Because <Table.provider renders={table:wrapper} ...> make a sytnx wrong,and the rows not undefined.so,How Can I resolve.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants