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

Would like the ability to pass a custom node to DataTable header cell #82

Open
halocline opened this issue Aug 5, 2020 · 5 comments
Open

Comments

@halocline
Copy link

When defining DataTable columns, is it possible to pass in a node to the column header definition? This can be done in Grommet, however I think Designer may be always interpreting the header value as a string.

I am trying something like the following (trivial example):
Screen Shot 2020-08-05 at 10 18 42 AM

@ericsoderberghp
Copy link
Contributor

There isn't a way to provide a custom header cell render at the moment. You can do custom data cell rendering via render.

@halocline
Copy link
Author

halocline commented Aug 5, 2020

I have been doing it 😬. Perhaps not supported yet?

Checkout

I'll have to look at the implementation closer.

@halocline
Copy link
Author

halocline commented Aug 5, 2020

There isn't a way to provide a custom header cell render at the moment. You can do custom data cell rendering via render.

Or do you mean specifically in Designer? Apologies if I misunderstood.

@ericsoderberghp
Copy link
Contributor

Yes, it's just a limitation in the Designer currently.

@halocline
Copy link
Author

Yes, it's just a limitation in the Designer currently.

Gotcha. Thank you for the clarification.

@halocline halocline changed the title When defining DataTable columns, is it possible to pass in a node to the column header definition? Would like the ability to pass a custom node to DataTable header cell Aug 5, 2020
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