ember-bootstrap-colorpicker

0.0.2 • Public • Published

Ember-bootstrap-colorpicker

Build Status

Simple Bootstrap colorpicker Ember addon component, based on Bootstrap Colorpicker

Installation

npm install --save-dev ember-bootstrap-colorpicker
ember g ember-bootstrap-colorpicker

Usage

//templates/components/example.hbs
{{ember-bootstrap-colorpicker color=model.color}}

You can bind the color property to your model, so that it will be updated by two-way bindings. The ember addon component also accepts other options, you can find detailed documentation: http://mjolnic.com/bootstrap-colorpicker

If you want to customize this component by extending it and override the default behaviors, you could do something like

//app/components/my-bootstrap-colorpicker.js
import BootstrapColorpicker from 'ember-bootstrap-colorpicker/components/ember-bootstrap-colorpicker';
 
export default BootstrapColorpicker.extend({
    format: 'rgba',
    horizontal: true
});

Running

Running Tests

  • ember test
  • ember test --server

Building

  • ember build

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

Package Sidebar

Install

npm i ember-bootstrap-colorpicker

Weekly Downloads

0

Version

0.0.2

License

MIT

Last publish

Collaborators

  • zhujy8833