From a11a3ffd72622b813fd5e25f4157edfef51f7960 Mon Sep 17 00:00:00 2001
From: Prakash K <59553606+prakashks20@users.noreply.github.com>
Date: Tue, 2 Jan 2024 23:33:53 +0530
Subject: [PATCH 1/6] Handle Pagination's pageSiseOptions Select showSearch
props handle dynamically
---
README.md | 1 +
src/Options.tsx | 3 ++-
src/Pagination.tsx | 2 ++
3 files changed, 5 insertions(+), 1 deletion(-)
diff --git a/README.md b/README.md
index efc21403..265322e3 100644
--- a/README.md
+++ b/README.md
@@ -64,6 +64,7 @@ ReactDOM.render(, container);
| showSizeChanger | show pageSize changer | Bool | `false` when total less then `totalBoundaryShowSizeChanger`, `true` when otherwise |
| totalBoundaryShowSizeChanger | when total larger than it, `showSizeChanger` will be true | number | 50 |
| pageSizeOptions | specify the sizeChanger selections | Array | ['10', '20', '50', '100'] |
+| showSizeOptionsSearch | show the pageSizeOptions Select component search | Bool | Default value is `false`. `false` when total less then `totalBoundaryShowSizeChanger`, `true` when otherwise |
| onShowSizeChange | pageSize change callback | Function(current, size) | - |
| hideOnSinglePage | hide on single page | Bool | false |
| showPrevNextJumpers | show jump-prev, jump-next | Bool | true |
diff --git a/src/Options.tsx b/src/Options.tsx
index 99733aaf..74cb2814 100644
--- a/src/Options.tsx
+++ b/src/Options.tsx
@@ -42,6 +42,7 @@ const Options: React.FC = (props) => {
selectPrefixCls,
disabled,
buildOptionText,
+ showsSizeOtionsSearch
} = props;
const [goInputText, setGoInputText] = React.useState('');
@@ -128,7 +129,7 @@ const Options: React.FC = (props) => {