Custom loader in table row #427
Answered
by
simonguo
haresh-samnani
asked this question in
Q&A
-
Hi, I am currently using the latest version of rsuite table. I know that I can show loader for the whole table data using prop Can anybody help in achieving this? |
Beta Was this translation helpful? Give feedback.
Answered by
simonguo
May 3, 2023
Replies: 2 comments 1 reply
-
Hi @haresh-samnani you can use rsuite's Usageimport { Placeholder, Table } from 'rsuite';
const renderLoading = () => {
return (
<div
style={{
position: 'absolute',
width: '100%',
height: '100%',
background: '#fff',
padding: 20,
zIndex: 1
}}
>
<Placeholder.Grid rows={20} columns={6} active />
</div>
);
};
const App = () => {
return (
<Table loading renderLoading={renderLoading}>
...
</Table>
);
}; |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
haresh-samnani
-
Thank you. Marked as an answer! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @haresh-samnani you can use rsuite's
Placeholder
component.Usage