From 8fded0839368bea2185e27644d3713a12a9c3e89 Mon Sep 17 00:00:00 2001 From: Jos de Jong Date: Thu, 24 Oct 2024 09:33:16 +0200 Subject: [PATCH] docs: explain how to disable the color picker and timestamp tag (see #493) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index bcf1aba1..9f3e1639 100644 --- a/README.md +++ b/README.md @@ -429,7 +429,7 @@ To adjust the text color of keys or values, the color of the classes `.jse-key` onRenderValue(props: RenderValueProps) : RenderValueComponentDescription[] ``` -Customize rendering of the values. By default, `renderValue` is used, which renders a value as an editable div and depending on the value can also render a boolean toggle, a color picker, and a timestamp tag. Multiple components can be rendered alongside each other, like the boolean toggle and color picker being rendered left from the editable div. Built in value renderer components: `EditableValue`, `ReadonlyValue`, `BooleanToggle`, `ColorPicker`, `TimestampTag`, `EnumValue`. +Customize rendering of the values. By default, `renderValue` is used, which renders a value as an editable div and depending on the value can also render a boolean toggle, a color picker, and a timestamp tag. Multiple components can be rendered alongside each other, like the boolean toggle and color picker being rendered left from the editable div. In order to disable for example the built-in color picker or timestamp tag, you can look up the source code of `renderValue`, copy it, and then remove the components that you do not want from the function. Built in value renderer components: `EditableValue`, `ReadonlyValue`, `BooleanToggle`, `ColorPicker`, `TimestampTag`, `EnumValue`. For JSON Schema enums, there is a ready-made value renderer `renderJSONSchemaEnum` which renders enums using the `EnumValue` component. This can be used like: