Skip to content

Commit 9f2e8be

Browse files
makdenissmakdeniss
authored andcommitted
Merge branch 'main' into feat/edit-entity-btn
2 parents 50643ee + 0f1751d commit 9f2e8be

File tree

15 files changed

+1351
-737
lines changed

15 files changed

+1351
-737
lines changed

docs/readme-generic-ui.md

Lines changed: 20 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ In order to use the generic list view, you need to adjust the node’s `conten
3131

3232
- `"listView"`: contains `"fields"` definitions that will be translated to the columns of the table list view, `"label"` corresponds to
3333
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.
3435
- `"detailView"`: similarly describes the fields which are to show up on the detailed view. Supports field grouping for compact display of related data.
3536
- `"createView`: section additionally provides possibility to add the `"required"` flag to the filed definition,
3637
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:
5051
- `"label"`: Display name for the group
5152
- `"delimiter"`: String used to separate grouped values
5253
- `"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)
5361
- `"dynamicValuesDefinition"`: Configuration for dynamic value loading:
5462
- `"operation"`: GraphQL operation name
5563
- `"gqlQuery"`: GraphQL query string
@@ -100,7 +108,13 @@ Below is an example content-configuration for an accounts node using the generic
100108
},
101109
{
102110
"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+
}
104118
},
105119
{
106120
"label": "Contact Info",
@@ -130,7 +144,11 @@ Below is an example content-configuration for an accounts node using the generic
130144
},
131145
{
132146
"label": "Display Name",
133-
"property": "spec.displayName"
147+
"property": "spec.displayName",
148+
"labelDisplay": {
149+
"color": "#2e7d32",
150+
"fontWeight": "600"
151+
}
134152
},
135153
{
136154
"label": "Contact Info",

0 commit comments

Comments
 (0)