diff --git a/.all-contributorsrc b/.all-contributorsrc index 737e396d..5a7305b5 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -366,6 +366,16 @@ "contributions": [ "code" ] + }, + { + "login": "ParthSatasiya", + "name": "Parth Satasiya", + "avatar_url": "https://avatars.githubusercontent.com/u/31753548?v=4", + "profile": "https://github.com/ParthSatasiya", + "contributions": [ + "question", + "code" + ] } ], "contributorsPerLine": 7, diff --git a/README.md b/README.md index 41068257..63344d79 100644 --- a/README.md +++ b/README.md @@ -65,6 +65,7 @@ A lightweight and fast control to render a select component that can display hie - [id](#id) - [searchPredicate](#searchpredicate) - [inlineSearchInput](#inlinesearchinput) + - [pageSize](#pageSize) - [tabIndex](#tabIndex) - [disablePoppingOnBackspace](#disablePoppingOnBackspace) - [Styling and Customization](#styling-and-customization) @@ -416,6 +417,12 @@ Type: `bool` (default: `false`) `inlineSearchInput=true` makes the search input renders **inside** the dropdown-content. This can be useful when your UX looks something like [this comment](https://github.com/dowjones/react-dropdown-tree-select/issues/308#issue-526467109). +### pageSize + +Type: `number` (default: `100`) + +`pageSize=100` attribute indicates how many elements will render initially on the dropdown. When the scroll is near the end of the list at that time it automatically renders the next `100` elements in the dropdown. + ### tabIndex Type: `number` (default: `0`) @@ -659,6 +666,7 @@ Thanks goes to these wonderful people ([emoji key](https://github.com/kentcdodds