Skip to content

Commit 8676923

Browse files
authored
Update Paginator.js
1 parent 8001673 commit 8676923

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

components/lib/paginator/Paginator.js

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import { PageLinks } from './PageLinks';
1212
import { PaginatorBase } from './PaginatorBase';
1313
import { PrevPageLink } from './PrevPageLink';
1414
import { RowsPerPageDropdown } from './RowsPerPageDropdown';
15+
import { CustomOption } from './CustomOption';
1516

1617
export const Paginator = React.memo(
1718
React.forwardRef((inProps, ref) => {
@@ -251,7 +252,18 @@ export const Paginator = React.memo(
251252
break;
252253

253254
default:
254-
element = null;
255+
element = (
256+
<CustomOption hostName="Paginator"
257+
key={key}
258+
page={page}
259+
totalPages={totalPages}
260+
totalRecords={props.totalRecords}
261+
rows={props.rows}
262+
first={props.first}
263+
template={template}
264+
onChange={changePage}
265+
ptm={ptm} />
266+
);
255267
break;
256268
}
257269

0 commit comments

Comments
 (0)