New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

autoc

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

autoc

autocomplete

  • 0.0.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Autoc

Autocomplete with optional Handlebars templates.

##Usage

var Autoc = require('autoc');
var input = document.querySelector('#id_username');
var autoc_options = {
	
	'suggestionTemplate': null, 
	// ID of handlebars template,
	
	'minQueryLength': 2, 
	// Only send ajax request if length of input exceeds this value
	
	'queryParamter': 'search', 
	// Query parameter to add to API url. e.g., /api/users/?search=query
	
	'throttle': 10, 
	// Send ajax request only every 10 miliseconds
	
	'listAlign': 'left', 
	// Align dropdown to left or right of parent element
	
	'listClasses': [], 
	// Classes to apply to the dropdown list
	
	'itemClasses': [], 
	// Classes to apply to autocomplete item results
	
	'valueParameter': null, 
	// JSON property in each item of the response that maps to the search input

}
var autocomplete = Autoc(input, '/api/users/', autocomplete_options);

Keywords

FAQs

Package last updated on 24 Oct 2014

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