diff --git a/CHANGELOG.md b/CHANGELOG.md index eb44ceb77..5659a3883 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. ## [Unreleased] +### Added + +- Support for lazy loading select options with pagination. + ## [9.128.1] - 2020-08-28 ### Fixed diff --git a/react/components/EXPERIMENTAL_Select/README.md b/react/components/EXPERIMENTAL_Select/README.md index 3bad6c3ba..21c85c6d2 100755 --- a/react/components/EXPERIMENTAL_Select/README.md +++ b/react/components/EXPERIMENTAL_Select/README.md @@ -393,3 +393,49 @@ class SelectWithModalExample extends React.Component { ; ``` + +Paginated + +```js +const options = [] +for (let i = 0; i < 1000; ++i) { + options.push({ + value: i + 1, + label: `Option ${i + 1}`, + }) +} + +const sleep = ms => + new Promise(resolve => { + setTimeout(() => { + resolve() + }, ms) + }) + +;
+
+