Administrate::Field::HexColorPicker
A plugin for Administrate
Usage
Add to your Gemfile
:
gem 'administrate-field-hex_color_picker'
Run:
$ bundle install
Add to your FooDashboard
:
ATTRIBUTE_TYPES = [
bars: Field::HexColorPicker.with_options(
choices: %w[One Two Three],
include_blank: 'Choose An Option',
multiple: true,
),
]