Skip to content

coprl/color_picker_presenter_plugin

 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Ruby 59.8%
  • HTML 27.4%
  • JavaScript 10.6%
  • Shell 2.2%