Socket
Socket
Sign inDemoInstall

lazyselectize

Package Overview
Dependencies
15
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    lazyselectize

This plugin gives an ability to process scroll event in dropdown and download options if scroll is in bottom of the dropdown


Version published
Weekly downloads
1
decreased by-90.91%
Maintainers
1
Created
Weekly downloads
 

Readme

Source

lazyselectize.js

NPM version

Lazyselectize is an extensible selectize-based custom <select> UI control. It allows to process scroll event in dropdown and download options if scroll is in bottom of the dropdown

Features

  • Features inherited from selectize

Dependencies

Files

All pre-built files needed to use Selectize can be found in the "dist" folder.

Usage

$('select').lazyselectize(options);

The available selectize options are documented here. Options object may include both selectize and lazyselectize options.

Lazyselectize Options

<tr>
	<th valign="top" colspan="4" align="left"><a href="#general" style="color: red" name="general">Non-configurable options </a></th>
</tr>
<tr>
	<th valign="top" width="120px" align="left">Option</th>
	<th valign="top" colspan="3" align="left">Description</th>
</tr>
<tr>
	<td valign="top"><code>load(callback, query)</code></td>
	<td  colspan="3">Invoked when new options should be loaded from the server. Defined in lazyselectize.js</td>
</tr>
<tr>
	<td valign="top"><code>onDropdownOpen($dropdown)</code></td>
	<td colspan="3">Invoked when the dropdown opens. Defined in lazyselectize.js</td>
</tr>
General
OptionDescriptionTypeDefault
loadItemsUrlAn url to download selectize dropdown options. Necessary url parameters:
  • keyword - search string
  • index - number of data portion(Start value: 0. Each time when scroll moves down it increases by 1)
url, required
disableScoreIf true, selectize score function will be disabled. Dropdown items order will be defined in your server method. boolfalse

IE8 Support

To support Internet Explorer 8, es5-shim must be added your page.

<!--[if lt IE 9]><script src="http://cdnjs.cloudflare.com/ajax/libs/es5-shim/2.0.8/es5-shim.min.js"></script><![endif]-->

Keywords

FAQs

Last updated on 12 Apr 2016

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc