-
Notifications
You must be signed in to change notification settings - Fork 143
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add server side pagination with
totalItemCount
& `pagination…
…Type` (#2001)
- Loading branch information
1 parent
03a37be
commit b21e3ae
Showing
9 changed files
with
383 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@razorpay/blade": minor | ||
--- | ||
|
||
chore: add server-side pagination with `totalItemCount` & `paginationType` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
packages/blade/src/components/Table/docs/TablePaginationExamples.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
import React from 'react'; | ||
import type { Meta } from '@storybook/react'; | ||
import { Table } from '../Table'; | ||
import { TableWithClientSidePaginationStory, TableWithServerSidePaginationStory } from './stories'; | ||
import { Sandbox } from '~utils/storybook/Sandbox'; | ||
|
||
const TableMeta: Meta = { | ||
title: 'Components/Table/Examples/Pagination', | ||
component: Table, | ||
parameters: { | ||
viewMode: 'story', | ||
options: { | ||
showPanel: false, | ||
}, | ||
previewTabs: { | ||
'storybook/docs/panel': { | ||
hidden: true, | ||
}, | ||
}, | ||
chromatic: { disableSnapshot: true }, | ||
}, | ||
}; | ||
|
||
export const TableWithClientSidePagination = (): React.ReactElement => { | ||
return ( | ||
<Sandbox padding="spacing.0" editorHeight="90vh"> | ||
{TableWithClientSidePaginationStory} | ||
</Sandbox> | ||
); | ||
}; | ||
|
||
export const TableWithServerSidePagination = (): React.ReactElement => { | ||
return ( | ||
<Sandbox padding="spacing.0" editorHeight="90vh"> | ||
{TableWithServerSidePaginationStory} | ||
</Sandbox> | ||
); | ||
}; | ||
|
||
export default TableMeta; |
Oops, something went wrong.