[view] FormComponent

This commit is contained in:
Vinícius Moreira
2019-12-13 13:28:23 -03:00
parent 4f360bf8ba
commit 7a3df32471
6 changed files with 80 additions and 16 deletions

View File

@@ -114,3 +114,11 @@ class TextInputComponent(ViewComponent):
return self.value.strip()
else:
return ''
class FormComponent(ViewComponent):
def __init__(self, components: List[ViewComponent], label: str = None, id_: str = None):
super(FormComponent, self).__init__(id_=id_)
self.label = label
self.components = components