Download the PHP package fromholdio/silverstripe-colorpalette without Composer
On this page you can find all versions of the php package fromholdio/silverstripe-colorpalette. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fromholdio/silverstripe-colorpalette
More information about fromholdio/silverstripe-colorpalette
Files in fromholdio/silverstripe-colorpalette
Package silverstripe-colorpalette
Short Description A color palette picker for SilverStripe CMS
License MIT
Informations about the package silverstripe-colorpalette
SilverStripe Color Palette Field
Provides a color picker field in SilverStripe allowing a user to select from defined selection of colors (palette)
Forked from heyday/silverstripe-colorpalette, applying PRs and fresh styling. 2.x branch is compatible as a direct replacement of the original repo's 2.x branch.
As of 3.2.0, this module now contains a React component, enabling compatibility for the field with Elemental inline forms.
The active 3.x branch diverges from the original with additional features and breaking changes:
- Provide text labels per color and have them displayed to users
- Set a full CSS background declaration per color rather than just a hex value (allowing for gradients/images/etc)
- Can set some text string like "Aa" which will be placed on top of the color box (optional)
- Set a CSS color value separate to the background value, which the text on top of the box will be colored (might have two different themes with same bg style but different text colour, for example)
- Improved 'selected' visual treatment
- Grouped field now subclasses the single version of the field and reduced repeated code
Installation (with composer)
$ composer require fromholdio/silverstripe-colorpalette
Example
Usage
Regular palette
Grouped Palette
License
SilverStripe Color Palette Field is licensed under an MIT license
All versions of silverstripe-colorpalette with dependencies
silverstripe/framework Version ~4.0 || ~5.0