Provides a color picker field in SilverStripe allowing a user to select from defined selection of colors (palette)
$ composer require heyday/silverstripe-colorpalette
$fields->addFieldToTab(
'Root.Main',
Heyday\ColorPalette\Fields\ColorPaletteField::create(
'BackgroundColor',
'Background Color',
array(
'White' => '#fff',
'Black' => '#000'
)
)
);
$fields->addFieldToTab(
'Root.Main',
Heyday\ColorPalette\Fields\GroupedColorPaletteField::create(
'BackgroundColor',
'Background Color',
array(
'Primary Palette' => array(
'White' => '#fff',
'Black' => '#000'
),
'Secondary Palette' => array(
'Blue' => 'blue',
'Red' => 'red'
)
)
)
);
SilverStripe Color Palette Field is licensed under an MIT license
Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem