1.0.6 • Published 5 years ago

auto-complete-textbox v1.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
5 years ago

auto-complete-textbox

It is a web component which gives you suggestion as soon as you start typing in. Default suggestion items are ["lorem", "ipsum", "dolor", "sit", "amet"]

How to use

To use this component in your project, you have to simply follow these steps:

  • Run npm install auto-complete-textbox
  • Put a script tag similar to this <script src='node_modules/auto-complete-textbox/autocompletetextbox.js'></script> in the head of your index.html
  • Then you can use the element anywhere in your html, template, JSX file etc using following custom tag:
    <body>
       <auto-complete-textbox></auto-complete-textbox>
    </body>

Properties

PropertyAttributeDescriptionTypeDefault
data--The filterd data as per searched querystring[][]
isDisableddisabledThis property can be used by host element to make functionality disabledbooleanfalse

Methods

addData(d: string[]) => Promise<void>

This method can be used to add new options to autocomplete suggestions list.

Returns

Type: Promise<void>

initializeData(d: string[]) => Promise<void>

This method can be used to change/initialize autocomplete suggestions list. Note - This will not append but reinitialize the suggestion data, so previous suggestion data will be overwritten.

Returns

Type: Promise<void>


Built with StencilJS

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