Custom loader in table row #427
-
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.
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.
-
Thank you. Marked as an answer! |
Beta Was this translation helpful? Give feedback.
Hi @haresh-samnani you can use rsuite's
Placeholder
component.Usage