# ventnor-selectize

> A ventnor selectize view

Latest version **2.0.0** (published 2015-06-01) · ISC license · 0 weekly downloads

## Install

```sh
npm install ventnor-selectize
pnpm add ventnor-selectize
yarn add ventnor-selectize
bun add ventnor-selectize
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2015-06-01 |
| First published | 2015-05-05 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Dom Harrington |
| Maintainers | domharrington |

## Links

- npm: https://www.npmjs.com/package/ventnor-selectize
- Repository: git@github.com:domharrington/ventnor-selectize
- Homepage: https://github.com/domharrington/ventnor-selectize
- Issues: https://github.com/domharrington/ventnor-selectize/issues
- npm.io page: https://npm.io/package/ventnor-selectize

## Dependencies (1)

- [ventnor](https://npm.io/package/ventnor.md) ^0.2.0

## Recent versions

- 2.0.0 (latest) — 2015-06-01
- 1.0.1 — 2015-05-05
- 1.0.0 — 2015-05-05

## README

# ventnor-selectize

A [ventnor](https://github.com/bengourley/ventnor) [selectize](https://github.com/brianreavis/selectize.js) view

[![build status](https://secure.travis-ci.org/domharrington/ventnor-selectize.svg)](http://travis-ci.org/domharrington/ventnor-selectize)
[![dependency status](https://david-dm.org/domharrington/ventnor-selectize.svg)](https://david-dm.org/domharrington/ventnor-selectize)

## Installation

```
npm install --save ventnor-selectize
```

## Usage
```js
var Selectize = require('ventnor-selectize')
  , serviceLocator = {}
  , selectedOptions = [ 1, 2, 3 ]
  , service = { find: function (searchTerm, query, sort, options, cb) {} }
  , view = new Selectize(serviceLocator, selectedOptions, { service: service })

view.render().$el.appendTo('body')

// Emitted when the value changes
view.on('change', function (value) {
  alert(value)
})

```

### `var view = new Selectize(serviceLocator, selectedOptions, options)`

- `serviceLocator` - a service locator instance
- `selectedOptions` - the options to be selected (as an array)

Options must include:
- `service` a service with a `find()` function that has a signature of `function (searchTerm, query, sort, options, cb)`

Options can include:
- `logger` - defaults to `console`

## Credits
[Dom Harrington](https://github.com/domharrington/)

## License

ISC

---
_Source: https://npm.io/package/ventnor-selectize · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
