From 55ff4608953d0755a7a995f1e58b782c01a4374c Mon Sep 17 00:00:00 2001 From: Flakerim Ismani Date: Thu, 4 Jan 2018 19:54:30 +0100 Subject: [PATCH] Added colorpicker column type (#3338) Renders 30px by 30px square of the selected colour. `type: colorpicker` in the columns config. Credit to @flakerimi --- modules/backend/widgets/Lists.php | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/modules/backend/widgets/Lists.php b/modules/backend/widgets/Lists.php index f612b4b94..c19f52522 100644 --- a/modules/backend/widgets/Lists.php +++ b/modules/backend/widgets/Lists.php @@ -1164,7 +1164,13 @@ class Lists extends WidgetBase return Backend::dateTime($dateTime, $options); } - + /** + * Process as background color, to be seen at list + */ + protected function evalColorPickerTypeValue($record, $column, $value) + { + return ''; + } /** * Validates a column type as a date */