<commit_before># ember-selectize

An Ember and Selectize integration. Check [Selectize](http://brianreavis.github.io/selectize.js/)!

## Demo

Check http://miguelcobain.github.io/ember-selectize

## Browser Support

Should run wherever Ember and Selectize run.

## How to use

Just grab the `src/ember.selectize.js` and drop/include in your build pipeline.
Building automation is not available since this is a very simple project (basically an `Ember.View`).

The usage should be very similar to `Ember.Select`. For example, in a template you could write:

```handlebars
{{ view Ember.Selectize id="type"
  contentBinding="controller.types"
  optionValuePath="content.id"
  optionLabelPath="content.name"
  selectionBinding="model.type"
  placeholder="Select an option" }}
```
## Tests

```js
npm install
npm test # open localhost:3000
```

Tests are written in qunit, and were borrowed from `Ember.Select`.

I've rewritten many of them, but most of them still fail.

This is due to the nature of this component. `Selectize`'s tests assures that everything is ok between Selectize<->DOM.
`Ember.Select`'s tests also test the DOM. This is unecessary in this project. 

Ember-selectize tests should be focused between Ember<->Selectize.

**There is still much to do here.**<commit_msg>add warning<commit_after># IMPORTANT

Please use the new https://github.com/miguelcobain/ember-cli-selectize repository.
This provides an Ember-cli addon and a standalone release. This repository will be **unmaintained**.

# ember-selectize

An Ember and Selectize integration. Check [Selectize](http://brianreavis.github.io/selectize.js/)!

## Demo

Check http://miguelcobain.github.io/ember-selectize

## Browser Support

Should run wherever Ember and Selectize run.

## How to use

Just grab the `src/ember.selectize.js` and drop/include in your build pipeline.
Building automation is not available since this is a very simple project (basically an `Ember.View`).

The usage should be very similar to `Ember.Select`. For example, in a template you could write:

```handlebars
{{ view Ember.Selectize id="type"
  contentBinding="controller.types"
  optionValuePath="content.id"
  optionLabelPath="content.name"
  selectionBinding="model.type"
  placeholder="Select an option" }}
```
## Tests

```js
npm install
npm test # open localhost:3000
```

Tests are written in qunit, and were borrowed from `Ember.Select`.

I've rewritten many of them, but most of them still fail.

This is due to the nature of this component. `Selectize`'s tests assures that everything is ok between Selectize<->DOM.
`Ember.Select`'s tests also test the DOM. This is unecessary in this project.

Ember-selectize tests should be focused between Ember<->Selectize.

**There is still much to do here.**
{'fraction_non_alphanumeric': 0.09815284317276349, 'fraction_numerical': 0.002897500905469033, 'mean_word_length': 4.659836065573771, 'pattern_counts': {'":': 0, '<': 7, '<?xml version=': 0, '>': 7, 'https://': 1, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6898237', 'n_tokens_mistral': 842, 'n_tokens_neox': 806, 'n_words': 319}