An open API service indexing awesome lists of open source software.

https://github.com/idecardo/vue-selectize

A Selectize wrapper for Vue.js 2.
https://github.com/idecardo/vue-selectize

javascript selectize vue

Last synced: about 2 months ago
JSON representation

A Selectize wrapper for Vue.js 2.

Awesome Lists containing this project

README

          

# vue-selectize

A [Selectize](https://selectize.github.io/selectize.js/) wrapper for [Vue.js 2](https://vuejs.org/).

### Dependencies

- [jQuery](https://github.com/jquery/jquery/) >= 1.7.0

### Installation

```
npm install --save jquery @idecardo/vue-selectize
```

### Usage

```javascript
import Selectize from '@idecardo/vue-selectize'

export default {
components: {
Selectize,
},

data: () => ({
options: [
{ value: 1, text: 'One' },
{ value: 2, text: 'Two' },
{ value: 3, text: 'Three' },
{ value: 4, text: 'Four' },
{ value: 5, text: 'Five' },
],

selected: [],

settings: {
maxItems: 3,
plugins: ['remove_button'],
},
}),
}
```

#### Basic

```html


{{ option.text }}

```

#### Settings

```html

```

#### Theme

```scss
// Include your preferred theme in your main SASS file or your component's section.

@import "~selectize/dist/css/selectize.default.css";
```