ember-cli-bootstrap-colorpicker

Bootstrap colorpicker for Ember


Keywords
ember-addon
License
MIT
Install
npm install ember-cli-bootstrap-colorpicker@3.1.0

Documentation

ember-cli-bootstrap-colorpicker

Bootstrap colorpicker for Ember. This component is based on mjolnic-bootstrap-colorpicker.

Installation

  • ember install ember-cli-bootstrap-colorpicker

BREAKING CHANGE for version 3

Two-way bindings are replaced by data down, actions up (DDAU). See: http://emberjs.com/blog/2015/06/12/ember-1-13-0-released.html#toc_ember-2-0-beta

Before:

{{bs-colorpicker tagName="input" type="text" color=color format="hex"}}

After:

{{bs-colorpicker tagName="input" type="text" color=color format="hex" onChange=(action (mut color))}}

Usage

With an input:

{{bs-colorpicker tagName="input" type="text" color=color format="hex" onChange=(action (mut color))}}

With an input addon:

{{#bs-colorpicker color=color format="hex" classNames="input-group" onChange=(action (mut color))}}
  <input type="text" class="form-control">
  <span class="input-group-addon"><i></i></span>
{{/bs-colorpicker}}

You can use this component with what you want. It simply initializes the colorpicker on the element.

Linting

  • npm run lint:js
  • npm run lint:js -- --fix

Running tests

  • ember test – Runs the test suite on the current Ember version
  • ember test --server – Runs the test suite in "watch mode"
  • npm test – Runs ember try:each to test your addon against multiple Ember versions

Running the dummy application

For more information on using ember-cli, visit https://ember-cli.com/.

License

This project is licensed under the MIT License.