Skip to content

Commit

Permalink
chore(Datagrid): add skeletonRowCount example (#6210)
Browse files Browse the repository at this point in the history
Co-authored-by: elysia <[email protected]>
  • Loading branch information
devadula-nandan and elycheea authored Oct 17, 2024
1 parent e7e025e commit 0bb5f6c
Showing 1 changed file with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -572,6 +572,23 @@ return <Datagrid datagridState={datagridState} />;
`,
},
},
{
title: 'Skeleton',
description: `By default, \`isFetching: true\` will render 3 skeleton rows. Use \`skeletonRowCount: Number\` to change the number of skeleton rows.`,
},
{
source: {
code: `
const datagridState = useDatagrid(
{
columns,
data,
isFetching: true,
skeletonRowCount: 5,
}
);`,
},
},
]}
/>
);
Expand Down

0 comments on commit 0bb5f6c

Please sign in to comment.