Skip to content
This repository has been archived by the owner on Aug 14, 2022. It is now read-only.

[Table] support loading and empty data #152

Open
dangbt opened this issue Apr 24, 2021 · 3 comments
Open

[Table] support loading and empty data #152

dangbt opened this issue Apr 24, 2021 · 3 comments
Labels
enhancement New feature or request

Comments

@dangbt
Copy link
Contributor

dangbt commented Apr 24, 2021

No description provided.

@thien-do
Copy link
Collaborator

Is there an example what do you expect to see when the date is not available yet?

  • Keeping the old state
  • Showing skeleton state (in which case you should pass the length of the rows, I think)

API-wise, I think a "busy" prop should be enough for Loading state. Not sure yet about the empty one.

@lqt93 lqt93 added the enhancement New feature or request label Apr 25, 2021
@dangbt
Copy link
Contributor Author

dangbt commented Apr 26, 2021

example here: https://codepen.io/dangbt/pen/QWdYeLp
if data is empty, we should display a row with text 'No Data' or something
About the state, we need a flag to know the data is fetching: busy or loading

@thien-do
Copy link
Collaborator

Hm that looks ok to be added

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants