1.2.5 • Published 5 years ago

customized-autocomplete v1.2.5

Weekly downloads
75
License
MIT
Repository
-
Last release
5 years ago

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
clearOnNullfalsefalsedefine whehter input should be cleared when selection value is set to null by parent component
inputNamefalse"secim"the name of the text input inside the autocomplete

License

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

1.2.5

5 years ago

1.2.4

5 years ago

1.2.3

5 years ago

1.2.2

5 years ago

1.2.1

5 years ago

1.1.9

5 years ago

1.1.8

5 years ago

1.1.7

5 years ago

1.1.6

5 years ago

1.1.5

5 years ago

1.1.4

5 years ago

1.1.1

5 years ago

1.1.0

5 years ago

1.1.3

5 years ago

1.1.2

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.11

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.6

5 years ago

1.0.5

5 years ago

1.0.4

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago