[ui][aur] improved Required / Optional confirmation dialogs

This commit is contained in:
Vinicius Moreira
2019-11-26 19:09:00 -03:00
parent bed3db69e6
commit 7720d4d3e3
5 changed files with 42 additions and 6 deletions

View File

@@ -28,7 +28,7 @@ class InputOption:
Represents a select component option.
"""
def __init__(self, label: str, value: object, tooltip: str = None, icon_path: str = None):
def __init__(self, label: str, value: object, tooltip: str = None, icon_path: str = None, read_only: bool = False):
"""
:param label: the string that will be shown to the user
:param value: the option value (not shown)
@@ -45,6 +45,7 @@ class InputOption:
self.value = value
self.tooltip = tooltip
self.icon_path = icon_path
self.read_only = read_only
def __hash__(self):
return hash(self.label) + hash(self.value)