mirror of
https://github.com/spalencsar/bearhub.git
synced 2026-07-07 01:14:15 +02:00
[view] improvement: able to specify min_width for label components
This commit is contained in:
@@ -129,9 +129,11 @@ class MultipleSelectComponent(InputViewComponent):
|
||||
|
||||
class TextComponent(ViewComponent):
|
||||
|
||||
def __init__(self, html: str, max_width: int = -1, tooltip: str = None, id_: str = None, size: int = None):
|
||||
def __init__(self, html: str, min_width: Optional[int] = None, max_width: int = -1,
|
||||
tooltip: str = None, id_: str = None, size: int = None):
|
||||
super(TextComponent, self).__init__(id_=id_)
|
||||
self.value = html
|
||||
self.min_width = min_width
|
||||
self.max_width = max_width
|
||||
self.tooltip = tooltip
|
||||
self.size = size
|
||||
|
||||
Reference in New Issue
Block a user