-
Notifications
You must be signed in to change notification settings - Fork 15
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
Add prop for empty state rendering #20
Comments
@DivineOmega Nice. Yeah a valid react element ( |
@DivineOmega What are you thoughts on this? I've come across a situation where I want to render something else while no data is present, but using the AJAX datatable so I cannot do:
As the table itself calls the data. cc @NilesB |
@dextermb Perhaps have a separate |
Maybe |
|
I think that it would be nice to have a prop named something along the lines of
emptyStateRender
which would allow you to pass in a:If a function or element is passed then it should return those rather than showing the table with "no data", if a string is passed then it'd just change the empty message.
Thoughts?
cc @NilesB @DivineOmega @JacobBrassington @wheatleyjj
The text was updated successfully, but these errors were encountered: