core (XMLUI), template(XMLUI): added flags to ListWidget:

following flags have been added:
- noselect: list selection is not allowed (options are the important data)
- extensible: user can add elements to the list
- reducible: user can remove elements from the list
- inline: presentation hint: the list should be displayed horizontally
This commit is contained in:
Goffi 2017-10-27 18:03:35 +02:00
commit 3ccb4c1038

View file

@ -81,6 +81,14 @@ class OptionsWidget(Widget):
ret.append(label)
return ret
@property
def inline(self):
return u'inline' in self.style
@property
def no_select(self):
return u'noselect' in self.style
class EmptyWidget(xmlui.EmptyWidget, Widget):