moai
moai copied to clipboard
[Table] support loading and empty data
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.
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
Hm that looks ok to be added