Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
customized-autocomplete
Advanced tools
This package can be used in your react applications for autocomplete search
This package uses standard mui autocomplete of react.
You can use standart npm package installation
npm i customized-autocomplete
import CustomizedAutocomplete from 'customized-autocomplete';
//...
render() {
return (
<React.Fragment>
//your other html here
<CustomizedAutocomplete
//..........
/>
//your other html here
</React.Fragment>
);
}
}
Parameter | Required | Default Value | Description |
---|---|---|---|
selectedValue | true | - | selection value of the autocomplete |
handleChange | true | - | when selection is made this function is triggered. Ex. Format : (event, selection) => { console.log(event,selection); } |
selectionType | false | "api" | define whether data is supplied statically or from an api method. can be either "api" or "static" |
optionApiMethod | vary | - | when selectionType is "api" this method must be supplied from an api method. return type is list of {value,label} pair. |
optionData | vary | - | when selectionType is "static" this parameter must be supplied as list of {value,label} pair |
onBlur | false | null | will be triggered after onBlur event Ex. Usage : (fieldName,e) => {console.log(fieldName,i)} |
error | false | null | can be used as validation for autocomplete. do not supply if validation is not needed |
touched | false | null | can be used as validation for autocomplete. do not supply if validation is not needed |
fieldName | true | - | name of the value will be set from parent component |
noOptionsText | true | - | text will appear when no options are available |
inputLabel | true | - | input label appear in top of the component |
setStopBlocking | false | null | define whehter ui blocking will be applied when searching |
loadOptionsAfterSelection | false | false | define whehter options will be reloaded after a selection is made |
clearOnNull | false | false | define whehter input should be cleared when selection value is set to null by parent component |
[MIT](https //choosealicense.com/licenses/mit/)
FAQs
Generalized version of mui autocomplete
The npm package customized-autocomplete receives a total of 1 weekly downloads. As such, customized-autocomplete popularity was classified as not popular.
We found that customized-autocomplete 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.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.