template (xmlui): added values property to be able to use always values even when there is only one value
This commit is contained in:
parent
83aa722103
commit
fa1680a119
1 changed files with 4 additions and 0 deletions
|
|
@ -49,6 +49,10 @@ class ValueWidget(Widget):
|
|||
super(ValueWidget, self).__init__(xmlui_parent)
|
||||
self.value = value
|
||||
|
||||
@property
|
||||
def values(self):
|
||||
return [self.value]
|
||||
|
||||
|
||||
class InputWidget(ValueWidget):
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue