1.0.26 • Published 6 years ago

preact-autocomplete v1.0.26

Weekly downloads
2
License
ISC
Repository
github
Last release
6 years ago

Preact-autocomplete npm version Build Status Coverage Status

A React Autocomplete Component for Input

Installation

yarn add preact-autocomplete or npm install preact-autocomplete --save

Demo

Online example

Features

  • Filter data of object or array
  • Customize filter value
  • Customize output value
  • Keyboard control
  • Auto reset value (option)
  • onChange callback
  • Customize empty message
  • Dropdown mode

Development

yarn install or npm install

local development :
start a local development with yarn w server onlocalhost:8080

local build :
yarn build output to /lib/*

Demo deploy :
yarn p output to public/*

local test :
yarn test


Preact-autocomplete npm version Build Status Coverage Status

一個使用於 autocomplete 或 dropdown 需求的 React component

安裝方式

yarn add preact-autocomplete

Demo

Online example

功能涵蓋

  • 過濾物件、陣列
  • 過濾任意key 值
  • 帶出任意key 值
  • keyboard 選擇
  • 自動清空 (可選)
  • 自訂選值後callback
  • 自訂查無項目訊息
  • 下拉選單模式

開發方式

yarn install

本機開發 :
yarn w 預設於localhost:8080 開啟Hot Module Replacement

本機部署 :
yarn build 預設透過babel 放置於/lib/*

Demo部署 :
yarn p 預設產出至 public/*

本機測試 :
yarn test

1.0.26

6 years ago

1.0.25

6 years ago

1.0.24

6 years ago

1.0.23

6 years ago

1.0.22

6 years ago

1.0.21

6 years ago

1.0.20

6 years ago

1.0.19

6 years ago

1.0.18

6 years ago

1.0.17

6 years ago

1.0.16

6 years ago

1.0.15

6 years ago

1.0.14

6 years ago

1.0.13

6 years ago

1.0.12

6 years ago

1.0.11

6 years ago

1.0.10

6 years ago

1.0.9

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.6

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.0

6 years ago