You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/readme-generic-ui.md
+20-2Lines changed: 20 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,7 @@ In order to use the generic list view, you need to adjust the node’s `conten
31
31
32
32
-`"listView"`: contains `"fields"` definitions that will be translated to the columns of the table list view, `"label"` corresponds to
33
33
the column name, whereas `"property"` is a json path of the property of a resource to be read. Fields can be grouped together using the `"group"` property to display related information in a single column.
34
+
`"labelDisplay"` this property allows you to customize the visual appearance of field values in both list and detail views.
34
35
-`"detailView"`: similarly describes the fields which are to show up on the detailed view. Supports field grouping for compact display of related data.
35
36
-`"createView`: section additionally provides possibility to add the `"required"` flag to the filed definition,
36
37
indicating that the field needs to be provided while creating an instance of that resource, with the `"values": ["account"]`
@@ -50,6 +51,13 @@ Each field definition supports the following properties:
50
51
-`"label"`: Display name for the group
51
52
-`"delimiter"`: String used to separate grouped values
52
53
-`"multiline"`: Boolean flag for multiline display of grouped values (default: true) When true, values are displayed on separate lines
54
+
-`"labelDisplay"`: Boolean value for using the defaults or an object for customizing the visual appearance of field values:
55
+
-`"backgroundColor"`: Background color for the value (CSS color value)
56
+
-`"color"`: Text color for the value (CSS color value)
57
+
-`"fontWeight"`: Font weight for the value (CSS font-weight value)
58
+
-`"fontStyle"`: Font style for the value (CSS font-style value)
59
+
-`"textDecoration"`: Text decoration for the value (CSS text-decoration value)
60
+
-`"textTransform"`: Text transformation for the value (CSS text-transform value)
53
61
-`"dynamicValuesDefinition"`: Configuration for dynamic value loading:
54
62
-`"operation"`: GraphQL operation name
55
63
-`"gqlQuery"`: GraphQL query string
@@ -100,7 +108,13 @@ Below is an example content-configuration for an accounts node using the generic
100
108
},
101
109
{
102
110
"label": "Type",
103
-
"property": "spec.type"
111
+
"property": "spec.type",
112
+
"labelDisplay": {
113
+
"backgroundColor": "#e3f2fd",
114
+
"color": "#1976d2",
115
+
"fontWeight": "bold",
116
+
"textTransform": "uppercase"
117
+
}
104
118
},
105
119
{
106
120
"label": "Contact Info",
@@ -130,7 +144,11 @@ Below is an example content-configuration for an accounts node using the generic
0 commit comments