ink-power-auto-complete
v1.0.2
Published
**PS: ink-autocomplete and ink-select-input still your first choose**
Downloads
4
Readme
ink-power-auto-complete
PS: ink-autocomplete and ink-select-input still your first choose
feature
same as ink-autocomplete extra support paging(power ink-selected-input at same time)
WIP make it flexible
use fuzzysort for searching
usage
npm install ink-power-auto-complete -S // or yarn add ink-power-auto-complete
import AutoComplete from "ink-power-auto-complete"; // power AutoComplete
import Select from "ink-power-auto-complete/dist/custom-select"; // power Select
<AutoComplete
value={searching}
items={list}
onChange={this.handleChange}
onSubmit={this.handleSubmit}
pageLimit={10}
/>
options
pageLimit
paging size
getMatchItems
default:
const getMatchItems = (value, items, fuzzysort) =>
fuzzysort.go(value, items, {
key: "label"
});
showListDefalut
true or false
show all the result before input
base
ink-autocomplete ink-select-input