Skip to content

Commit 9e7bd27

Browse files
committed
fix(vuetify): Set proxyType as explicit property
1 parent 4e0e140 commit 9e7bd27

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

docs/definitions.md

+1
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ The __YAML__ structure follow the given hierarchy:
7474
1. type: Name of the domain class
7575
2. name: (optional) identifier when we don't want to use its `type` as identifier.
7676
3. **: additional parameters specific to domain type expectation.
77+
2. proxyType: Name of proxy used in proxy lists
7778

7879
# Domain definitions
7980

trame_simput/core/ui/resolvers/vuetify.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ def __init__(self):
3939

4040
def get_widget(self, elem):
4141
model = self._model.get(elem.get("name"), {})
42-
attributes = {key: model[key] for key in model if not key.startswith("_")}
42+
attributes = {}
4343
if elem.tag in VUETIFY_MAP:
4444
return VUETIFY_MAP[elem.tag], attributes
4545
elif elem.tag == "input":
@@ -80,6 +80,10 @@ def get_widget(self, elem):
8080
if self._model.get(elem.get("name"), {}).get("type", "string") == "bool":
8181
widget = "sw-switch"
8282

83+
proxy_type = model.get("proxyType", None)
84+
if proxy_type is not None:
85+
attributes["proxyType"] = proxy_type
86+
8387
return widget, attributes
8488
elif elem.tag == "proxy":
8589
return "sw-proxy", attributes

0 commit comments

Comments
 (0)