toastnz/silverstripe-color-field

Silverstripe Color Field

Installs: 99

Dependents: 2

Suggesters: 0

Security: 0

Stars: 1

Watchers: 9

Forks: 10

Open Issues: 2

Language:JavaScript

Type:silverstripe-module

0.1.0 2015-08-26 04:22 UTC

This package is not auto-updated.

Last update: 2024-12-25 11:40:37 UTC


README

#Silverstripe Color Field 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'