![require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages](https://cdn.sanity.io/images/cgdhsj6q/production/be8ab80c8efa5907bc341c6fefe9aa20d239d890-1600x1097.png?w=400&fit=max&auto=format)
Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
react-lazy-dropdown
Advanced tools
[react-lazy-dropdown] is a very useful react component for multi selection dropdown based on lazy loading option by API calls with async lazy Filtering, Sorting and Tags with custom functions can be provided from the outside
[react-lazy-dropdown] is a very useful react component for multi selection dropdown based on lazy loading option by API calls with async lazy Filtering, Sorting and Tags with custom functions can be provided from the outside
npm install react-lazy-dropdown
import {LazySelect} from 'react-lazy-dropdown/dist/index';
const displayShowMoreOptionCallBack = (selectedOptions) => {
alert(selectedOptions.length +" items selected");
};
const selectionChangedCallBack = (selectedOptions) => {
console.log(selectedOptions.length +" items selected");
};
return (
<>
<div className="m-5" style={{width: '500px'}}>
<LazySelect
ApiURL={
'https://--------/Get-------List'
}
UniqueKey={'Id'} // object unique key - must be unique per object
DisplayBy={'Name'}
PlaceHolder={'Select Methods'}
useQueryParams={false}
useBodyParams={true}
RequestMethod={'post'}
ExistingRequestParams={{
FilterByPlatform: false,
-----------------------,
}}
ExistingRequestHeaders={{
Authorization: `bearer eyJhbGciOi-----------------`,
}}
PageSize={10}
SearchRequestParamName={'search'}
StartFromRequestParamName={'From'}
PageSizeRequestParamName={'Size'}
ResponseResultsHierarchy={'data/Value/Results'}
DisplayShowMoreOption={true}
MaximunOptionToShow={3}
DisplayShowMoreOptionCallBack={displayShowMoreOptionCallBack}
SelectionChangedCallBack={selectionChangedCallBack}
IsMulti={true}
ShowTags={true}
/>
</div>
</>
);
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
FAQs
[react-lazy-dropdown] is a very useful react component for multi selection dropdown based on lazy loading option by API calls with async lazy Filtering, Sorting and Tags with custom functions can be provided from the outside
We found that react-lazy-dropdown demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.