@dpc-sdp/myvic-autocomplete

2.2.13 • Public • Published

@dpc-sdp/myvic-autocomplete

A component for displaying an autocomplete search with results.

This component renders a text input that allows searching over a set of items. The filtered results will appear beneath the input as a selectable list.

It can be configured with the function to be applied as the filter, as well as a formatting function for the description/tag of the item.

It is possible to format the result items in two different layouts: double line or single line. Showing an icon before the item is optional and there is support for custom icons per item. Check out the Ripple icon library

It emits an event when an item in the list is selected.


Install

npm install @dpc-sdp/myvic-autocomplete --save

Dependency graph

@dpc-sdp/myvic-autocomplete
├── @dpc-sdp/myvic-global

Import

import AutoComplete from '@dpc-sdp/myvic-autocomplete'

License

Licensed under the Apache-2.0 License.

Dependents (4)

Package Sidebar

Install

npm i @dpc-sdp/myvic-autocomplete

Weekly Downloads

3

Version

2.2.13

License

Apache-2.0

Unpacked Size

51.5 kB

Total Files

15

Last publish

Collaborators

  • waitingallday
  • alan-cole
  • sdp.devs