From 5cb5fdcc82b53892e3af4e26683868790f0fd3fd Mon Sep 17 00:00:00 2001 From: sgrtye Date: Tue, 13 Feb 2024 09:21:58 +0000 Subject: [PATCH] updated docs to reflect changes --- docs/widgets/services/customapi.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/docs/widgets/services/customapi.md b/docs/widgets/services/customapi.md index fb8cb61a..4301b7c6 100644 --- a/docs/widgets/services/customapi.md +++ b/docs/widgets/services/customapi.md @@ -122,9 +122,11 @@ The list view utilizes extra space to display an additional field (which is opti `additionalField`: Similar to the `field` option, but only used for the list view. It displays additional information for the mapping object on the right side of the `field`. -`additionalFieldColor`: Also list view only feature, it is used to color the additional field. The format is `color-shade` where examples could be found [here](https://tailwindcss.com/docs/customizing-colors#color-palette-reference). The shade can be selected ranging from 100 to 900 inclusive. +`additionalFieldColor`: Also list view only feature, it is used to color the additional field. -There are three special values for `additionalFieldColor`: `auto`, `black` and `white`. `black` and `white` have no shade, while `auto` will use the color based on the value of the `additionalField`. The first number found in `additionalField` will be used to determine the color (green for positive numbers, red for negative numbers). +Allowed options: `["auto", "theme", "black", "white"]`. + +`auto` will use the color based on the value of the `additionalField`. The first number found in `additionalField` will be used to determine the color (green for positive numbers, red for negative numbers). **Note:** Data transformation is still compatible with the list view, but the transformation only applies to the value of the `field`. @@ -133,7 +135,7 @@ There are three special values for `additionalFieldColor`: `auto`, `black` and ` label: Field format: text additionalField: another key # optional - additionalFieldColor: yellow-500 # optional + additionalFieldColor: auto # optional remap: - value: 0 to: None