Syntro\SilverStripeElementalBaseitems\Extensions\BootstrapBaseElementExtension::createColorSelectField
createColorSelectField - generates a field to be displayed in the cms allowing the selection of values from a color list
Signature
public function createColorSelectField(string
$name,
string
$title,
string
$colorListFromConfig,
[boolean
$addDefault = true] )
Parameters
$name
—
string
- the name of the field
$title
—
string
- the title of the field
$colorListFromConfig
—
string
- the config option containing the list
$addDefault
—
boolean
- = true add a default label
Returns
- DropdownField|TextField