Skip to content

evvnt/color_picker_presenter_plugin

Repository files navigation

ColorPickerPresenterPlugin

A plugin for presenters 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'

And then execute:

$ bundle

Or install it yourself as:

$ gem install color_picker_presenter_plugin

Usage

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.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published