All Projects → astronomersiva → ember-pickr

astronomersiva / ember-pickr

Licence: MIT license
Color Picker for EmberJS using pickr

Programming Languages

javascript
184084 projects - #8 most used programming language
HTML
75241 projects

Projects that are alternatives of or similar to ember-pickr

ember-on-modifier
Implements the `{{on eventName this.someAction}}` element modifier from https://github.com/emberjs/rfcs/blob/master/text/0471-on-modifier.md
Stars: ✭ 37 (+131.25%)
Mutual labels:  emberjs
Color-O-Matic
Beautiful color picker dialog for Android 9+
Stars: ✭ 43 (+168.75%)
Mutual labels:  color-picker
pantone-colors
Hex values of all 2310 Pantone colors
Stars: ✭ 147 (+818.75%)
Mutual labels:  color-picker
magento-grid-colors
Magento 2 Grid Colors module for colorizing admin grids. Supports saving of states with the help of grid's bookmarks.
Stars: ✭ 54 (+237.5%)
Mutual labels:  color-picker
react-color
🎨 Is a tiny color picker widget component for React apps.
Stars: ✭ 50 (+212.5%)
Mutual labels:  color-picker
playful-palette
WebGL implementation of Adobe's Playful Palette
Stars: ✭ 15 (-6.25%)
Mutual labels:  color-picker
svelte-color-picker
A color picker component for svelte
Stars: ✭ 96 (+500%)
Mutual labels:  color-picker
global-color-picker
start the script and click anywhere to get rgb value at the cursor location
Stars: ✭ 31 (+93.75%)
Mutual labels:  color-picker
ember-cli-g-maps
Deprecated Google Maps Addon
Stars: ✭ 58 (+262.5%)
Mutual labels:  emberjs
ember-link
Link primitive to pass around self-contained route references. It's {{link-to}}, but better!
Stars: ✭ 50 (+212.5%)
Mutual labels:  emberjs
libcolorpicker
Color Picker Library For iOS
Stars: ✭ 36 (+125%)
Mutual labels:  color-picker
JFrogfy
a simple clone of spotify built in Emberjs octane the music is played with youtube
Stars: ✭ 27 (+68.75%)
Mutual labels:  emberjs
ember-foxy-forms
Ember Addon for Making Foxy Forms
Stars: ✭ 27 (+68.75%)
Mutual labels:  emberjs
ember-help-wanted
Search help wanted issues in the Ember community
Stars: ✭ 23 (+43.75%)
Mutual labels:  emberjs
ember-event-helpers
Complimentary event template helpers to the {{on}} modifier
Stars: ✭ 33 (+106.25%)
Mutual labels:  emberjs
tcolors
Commandline color picker and palette builder
Stars: ✭ 44 (+175%)
Mutual labels:  color-picker
ember-best-language
🏳 A FastBoot-enabled addon to detect the best language for your user.
Stars: ✭ 18 (+12.5%)
Mutual labels:  emberjs
ember-shadow-dom
Write templates for your components inside of a Shadow DOM root.
Stars: ✭ 26 (+62.5%)
Mutual labels:  emberjs
System-Color-Picker
🎨 The macOS color picker as an app with more features
Stars: ✭ 696 (+4250%)
Mutual labels:  color-picker
FanKit-UWP
This is a cool UWP DeveloperTool that includes Brushes, Styles, Controls, ColorPicker, open source projects made with Win2d
Stars: ✭ 12 (-25%)
Mutual labels:  color-picker

ember-pickr Build Status

Color Picker for EmberJS using pickr

Demo & Documentation

Installation

ember install ember-pickr

Usage

{{color-picker
  value=value
  default="#e04e39"
  format="hexa"
}}

Options

Takes all options that are applicable to pickr.

  • disabled: Start state. If true, 'disabled' will be added to the button's classlist | false
  • default: Default color | #fff
  • comparison: If set to false it would directly apply the selected color on the button and preview | true
  • defaultRepresentation: Default color representation. Valid options are HEX, RGBA, HSVA, HSLA and CMYK | HEX
  • showAlways: Option to keep the color picker always visible | false
  • closeWithKey: Close pickr with this specific key. Can be the event key or code | Escape
  • position: Defines the position of the color-picker. Available options are top, left and middle relative to the picker button. If clipping occurs, the color picker will automatically choose his position. | middle
  • adjustableNumbers: Enables the ability to change numbers in an input field with the scroll-wheel. To use it set the cursor on a position where a number is and scroll, use ctrl to make steps of five | true
  • saveLabel: Button label for save button | Save
  • clearLabel: Button label for clear button | Clear
  • format: One of hsva, hsla, rgba, hexa, cmyk | { h, s, v, a }
  • To use the onChange and onSave handlers, use closure actions.
{{color-picker
  value=value
  default="#e04e39"
  format="hexa"
  saveLabel="Set Color"
}}

The onSave and onChange handlers can take two parameters - hsva and instance where hsva is an HSVa color object and instance is the current instance of Pickr. The HSVa object has toHSVA, toHSLA, toRGBA, toHEXA, toCMYK, and clone methods that return the converts the object into corresponding arrays. You can call toString on the resulting array to get the string representation of the colors.

  • To toggle components inside the color picker, you can pass the following options to the components property:
{
  palette: true,  // Will be overwritten with true if preview, opacity or hue are true
  preview: true,
  opacity: true,
  hue: true,

  interaction: {
    hex: true,
    rgba: true,
    hsva: true,
    input: true,
    clear: true,
    save: true
  }
}

License

This project is licensed under the MIT License.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].