[wgem] custom icon selector

This commit is contained in:
Vinícius Moreira
2019-12-16 11:40:05 -03:00
parent 995dc23a72
commit f6434f9e30
13 changed files with 116 additions and 18 deletions

View File

@@ -123,3 +123,12 @@ class FormComponent(ViewComponent):
super(FormComponent, self).__init__(id_=id_)
self.label = label
self.components = components
class FileChooserComponent(ViewComponent):
def __init__(self, allowed_extensions: Set[str] = None, label: str = None, id_: str = None):
super(FileChooserComponent, self).__init__(id_=id_)
self.label = label
self.allowed_extensions = allowed_extensions
self.file_path = None