File tree 2 files changed +6
-1
lines changed
trame_simput/core/ui/resolvers
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -74,6 +74,7 @@ The __YAML__ structure follow the given hierarchy:
74
74
1 . type: Name of the domain class
75
75
2 . name: (optional) identifier when we don't want to use its ` type ` as identifier.
76
76
3 . ** : additional parameters specific to domain type expectation.
77
+ 2 . proxyType: Name of proxy used in proxy lists
77
78
78
79
# Domain definitions
79
80
Original file line number Diff line number Diff line change @@ -39,7 +39,7 @@ def __init__(self):
39
39
40
40
def get_widget (self , elem ):
41
41
model = self ._model .get (elem .get ("name" ), {})
42
- attributes = {key : model [ key ] for key in model if not key . startswith ( "_" ) }
42
+ attributes = {}
43
43
if elem .tag in VUETIFY_MAP :
44
44
return VUETIFY_MAP [elem .tag ], attributes
45
45
elif elem .tag == "input" :
@@ -80,6 +80,10 @@ def get_widget(self, elem):
80
80
if self ._model .get (elem .get ("name" ), {}).get ("type" , "string" ) == "bool" :
81
81
widget = "sw-switch"
82
82
83
+ proxy_type = model .get ("proxyType" , None )
84
+ if proxy_type is not None :
85
+ attributes ["proxyType" ] = proxy_type
86
+
83
87
return widget , attributes
84
88
elif elem .tag == "proxy" :
85
89
return "sw-proxy" , attributes
You can’t perform that action at this time.
0 commit comments