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
* fix: improve template list config handling
* feat(webui): show template list display item
* feat(webui): allow hiding template list hints
* docs: document template list metadata fields
* fix: support file fields in template list configs
Copy file name to clipboardExpand all lines: docs/en/dev/star/guides/plugin-config.md
+13Lines changed: 13 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -146,7 +146,14 @@ Plugin developers can add a template-style configuration to `_conf_schema` in th
146
146
"template_1": {
147
147
"name": "Template One",
148
148
"hint":"hint",
149
+
"display_item": "attr_name",
150
+
"hide_hint_in_list": true,
149
151
"items": {
152
+
"attr_name": {
153
+
"description": "Attribute Name",
154
+
"type": "string",
155
+
"default": ""
156
+
},
150
157
"attr_a": {
151
158
"description": "Attribute A",
152
159
"type": "int",
@@ -187,6 +194,7 @@ Saved config example:
187
194
"field_id": [
188
195
{
189
196
"__template_key": "template_1",
197
+
"attr_name": "",
190
198
"attr_a": 10,
191
199
"attr_b": true
192
200
},
@@ -198,6 +206,11 @@ Saved config example:
198
206
]
199
207
```
200
208
209
+
Templates also support these optional fields:
210
+
211
+
-`display_item`: Specifies the key of a `string` item inside the template `items`. When set, the WebUI shows that field's current value in the collapsed list of added template entries, for example `Attribute Name: my-adapter`, making it easier to distinguish multiple entries created from the same template. Dot paths are supported for fields inside nested objects, for example `meta.name`.
212
+
-`hide_hint_in_list`: When set to `true`, the WebUI hides the template `hint` in the collapsed list of added template entries. The template selection dropdown still shows the `hint`, and hints for fields inside the expanded entry are not affected.
0 commit comments