ember-selectize

An Ember and Selectize integration.

MIT License

Stars
47
Committers
5

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!

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:

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

Tests

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.

Package Rankings
Top 10.6% on Bower.io
Related Projects