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
Requires
This package is not auto-updated.
Last update: 2024-11-13 11:00:36 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 ###Configuration Add as many colours as you want to the palettes.
ColorField: colors: - '#1976D2' - '#2196F3' - '#BBDEFB' - '#FFFFFF' - '#FF4081' - '#212121' - '#727272' - '#B6B6B6'