- π©πͺGermany Schoenef Unna
#8 works fantastic! Thx @le72.
I feel this is kind of a missing feature of the moule.
Hello,
I am trying to add in a Color Field to display the Widget Boxes and while looking through the code, I just cannot get it to display. Here is my code that I have that I'm trying to add the field for:
$form['bg_colors'] = [
#type' => 'color_field_type',
#title' => $this->t('Background Colors'),
#default_value' => $this->configuration['bg_colors'],
#description' => $this->t('Choose a background color for the whole layout.'),
];
But this doesn't render or show anything. If I change the '#type' variable to 'color', I get an HTML5 Color select box, but that will not work for me, as I need to limit the selection of colors to some very specific colors.
How can I implement the Color Field programmatically?
Closed: duplicate
2.0
Code
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
#8 works fantastic! Thx @le72.
I feel this is kind of a missing feature of the moule.