ryanpotter/silverstripe-color-field

Silverstripe Color Field

Installs: 359

Dependents: 4

Suggesters: 0

Stars: 2

Watchers: 2

Forks: 2

Open Issues: 2

Language:JavaScript

Type:silverstripe-module

0.1.0 2015-08-26 04:22 UTC

README

A colour picker field for the Silverstripe CMS. Uses Iris Colour Picker.

private static $db = array(
  'MyColor' => 'Varchar(7)'
);
ColorField::create('MyColor')

Screenshot

Screenshot

Configuration

Add as many colours as you want to the palettes.

ColorField:
  colors:
    - '#1976D2'
    - '#2196F3'
    - '#BBDEFB'
    - '#FFFFFF'
    - '#FF4081'
    - '#212121'
    - '#727272'
    - '#B6B6B6'