Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

my-autocompletec

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

my-autocompletec

image autocomplete

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
1
Weekly downloads
 
Created
Source

AutoComplete

a component to auto complete input

Installation

npm i my-autocompletec -S

Usage

import {AutoComplete} from 'my-autocompletec';

new AutoComplete({
    target: '#input',
    dataset: [],
    debounce: 300
})

Params

ParameterTypeDefaultDescription
targetstringthe input's selector used in document.querySelector
datasetarrayauto complete will pick data from this array, must be a object array width id and value property
debouncenumbermilliseconds to delay the input complete trigger
modestringindexOfother option includes startWidth and endWidth

Methods

Nameparamsreturn valueDescription
changeDatadatasetchange auto complete component's dataset

Keywords

FAQs

Package last updated on 11 Jul 2018

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc