Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

customized-autocomplete

Package Overview
Dependencies
Maintainers
1
Versions
30
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

customized-autocomplete

Generalized version of mui autocomplete

  • 1.2.2
  • npm
  • Socket score

Version published
Weekly downloads
2
decreased by-98.15%
Maintainers
1
Weekly downloads
 
Created
Source

Customized Autocomplete

This package can be used in your react applications for autocomplete search

This package uses standard mui autocomplete of react.

Installation

You can use standart npm package installation

npm i customized-autocomplete

Usage

import CustomizedAutocomplete from 'customized-autocomplete';

//...

  render() {
    return (
	  
      <React.Fragment>
		//your other html here
        <CustomizedAutocomplete
          //..........
        />
		//your other html here
      </React.Fragment>
    );
  }
}


Parameters

ParameterRequiredDefault ValueDescription
selectedValuetrue-selection value of the autocomplete
handleChangetrue-when selection is made this function is triggered. Ex. Format : (event, selection) => { console.log(event,selection); }
selectionTypefalse"api"define whether data is supplied statically or from an api method. can be either "api" or "static"
optionApiMethodvary-when selectionType is "api" this method must be supplied from an api method. return type is list of {value,label} pair.
optionDatavary-when selectionType is "static" this parameter must be supplied as list of {value,label} pair
onBlurfalsenullwill be triggered after onBlur event Ex. Usage : (fieldName,e) => {console.log(fieldName,i)}
errorfalsenullcan be used as validation for autocomplete. do not supply if validation is not needed
touchedfalsenullcan be used as validation for autocomplete. do not supply if validation is not needed
fieldNametrue-name of the value will be set from parent component
noOptionsTexttrue-text will appear when no options are available
inputLabeltrue-input label appear in top of the component
setStopBlockingfalsenulldefine whehter ui blocking will be applied when searching
loadOptionsAfterSelectionfalsefalsedefine whehter options will be reloaded after a selection is made

License

[MIT](https //choosealicense.com/licenses/mit/)

Keywords

FAQs

Package last updated on 16 Sep 2020

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc