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

Comparing version 1.0.2 to 1.0.3

dist/js/lazyselectize.js

10

package.json
{
"name": "lazyselectize",
"version": "1.0.2",
"version": "1.0.3",
"description": "This plugin gives an ability to process scroll event in dropdown and download options if scroll is in bottom of the dropdown",
"main": "lazySelectize.js",
"main": "dist/js/lazyselectize.js",
"scripts": {

@@ -15,4 +15,6 @@ "test": "echo \"Error: no test specified\" && exit 1"

"selectize",
"lazyselectize",
"scroll",
"event"
"event",
"infinite scroll"
],

@@ -26,3 +28,3 @@ "author": "Alex Suhanov",

"dependencies": {
"selectize": "^0.12.1"
"selectize": "*"
},

@@ -29,0 +31,0 @@ "devDependencies": {

76

README.md

@@ -14,24 +14,14 @@ # lazyselectize.js

- [jquery](https://github.com/jquery/jquery) (1.7 and greater)
- [selectize](https://www.npmjs.com/package/selectize) (bundled in ["standalone" build](node_modules/selectize/dist/js/standalone))
- [selectize](https://www.npmjs.com/package/selectize)
### Files
All pre-built files needed to use Selectize can be found in the ["dist"](dist/) folder.
All pre-built files needed to use Selectize can be found in the ["dist"](dist/js) folder.
- [**js/**](dist/js)
- [**standalone/**](node_modules/selectize/dist/js/standalone)
- [selectize.js](node_modules/selectize/dist/js/standalone/selectize.js) — With dependencies, minus jquery
- [lazyselectize.js](lazyselectize.js)
- [**less/**](dist/less)
- [selectize.less](node_modules/selectize/dist/less/selectize.less) — Core styles
- [selectize.default.less](node_modules/selectize/dist/less/selectize.default.less) — Default theme
- [selectize.bootstrap2.less](node_modules/selectize/dist/less/selectize.bootstrap2.less) — Bootstrap 2 theme
- [selectize.bootstrap3.less](node_modules/selectize/dist/less/selectize.bootstrap3.less) — Bootstrap 3 theme
- [**plugins/**](node_modules/selectize/dist/less/plugins) — Individual plugin styles
- [selectize.js](dist/js/selectize.js) — With dependencies, minus jquery
- [lazyselectize.js](dist/js/lazyselectize.js)
- [**css/**](dist/css)
- [selectize.css](node_modules/selectize/dist/css/selectize.css) — Core styles
- [selectize.default.css](node_modules/selectize/dist/css/selectize.default.css) — Default theme (with core styles)
- [selectize.bootstrap2.css](node_modules/selectize/dist/css/selectize.bootstrap2.css) - Bootstrap 2 theme
- [selectize.bootstrap3.css](node_modules/selectize/dist/css/selectize.bootstrap3.css) - Bootstrap 3 theme
- [selectize styles](https://www.npmjs.com/package/selectize)
### Usage

@@ -43,56 +33,6 @@

The available selectize options are [documented here](node_modules/selectize/docs/usage.md). Options object may include both selectize and lazyselectize options.
The available selectize options are [documented here](https://github.com/brianreavis/selectize.js/blob/master/docs/usage.md). Options object may include both selectize and lazyselectize options.
### Lazyselectize Options
The available lazyselectize options are [documented here](docs/usage.md)
<table width="100%">
<tr>
<th valign="top" colspan="4" align="left"><a href="#general" name="general">General </a></th>
</tr>
<tr>
<th valign="top" width="120px" align="left">Option</th>
<th valign="top" align="left">Description</th>
<th valign="top" width="60px" align="left">Type</th>
<th valign="top" width="60px" align="left">Default</th>
</tr>
<tr>
<td valign="top"><code>loadItemsUrl</code></td>
<td valign="top">An url to download selectize dropdown options. Necessary url parameters:
<ul>
<li>
keyword - search string
</li>
<li>
index - number of data portion(Start value: 0. Each time when scroll moves down it increases by 1)
</li>
</ul>
</td>
<td valign="top"><code>url, required</code></td>
<td valign="top"></td>
</tr>
<tr>
<td valign="top"><code>disableScore</code></td>
<td valign="top">If true, selectize score function will be disabled. Dropdown items order will be defined in your server method.
</td>
<td valign="top"><code>bool</code></td>
<td valign="top"><code>false</code></td>
</tr>
<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>
</table>
### IE8 Support

@@ -99,0 +39,0 @@

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