Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
ember-pickr
Advanced tools
Changelog
Readme
Color Picker for EmberJS using pickr
ember install ember-pickr
{{color-picker
value=value
default="#e04e39"
format="hexa"
}}
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 | #fffcomparison
: 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 }
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.
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
}
}
This project is licensed under the MIT License.
FAQs
Color Picker for EmberJS using pickr
The npm package ember-pickr receives a total of 2,976 weekly downloads. As such, ember-pickr popularity was classified as popular.
We found that ember-pickr demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.