Skip to content

Latest commit

 

History

History
52 lines (35 loc) · 1.33 KB

README.md

File metadata and controls

52 lines (35 loc) · 1.33 KB

Color picker Presenter Plugin

A COPRL presenter plugin that provides color picker functionality. Use Javascript library from material-design-inspired-color-picker

Installation

Add this line to your application's Gemfile:

gem 'color_picker_presenter_plugin', git: 'https://github.com/coprl/color_picker_presenter_plugin', require: false

And then execute:

$ bundle

Usage in POMs

Declare the plugin in your pom, plugin :color_picker.

Voom::Presenters.define(:my_pom) do
  plugin :color_picker
  
  content do
    color_picker(:name, value: '#BBFF11')
  end
end

Additional options and defaults

color_margin: 6
color_per_row: 5
color_size: 54
default_tint: 500
fixed_min_height: true
palette: "material-full"
use_spectrum_picker: true

Look here for more configuration details.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the COPRL project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.