aboutsummaryrefslogtreecommitdiff
path: root/modules/ui_components.py
diff options
context:
space:
mode:
authorIvan <ivan.demian2009@gmail.com>2023-01-27 17:21:48 +0500
committerGitHub <noreply@github.com>2023-01-27 17:21:48 +0500
commit63391419c11c1749a3d83dade19235a836c509f9 (patch)
tree5781c7fe6de7a61bb5936956e68e0582f03d7f6c /modules/ui_components.py
parentf5d73b6a6646b51027c8e6f6c6154f21b58d6af2 (diff)
parent9beb794e0b0dc1a0f9e89d8e38bd789a8c608397 (diff)
Merge branch 'AUTOMATIC1111:master' into master
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r--modules/ui_components.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py
index 9aec3097..284ca0cf 100644
--- a/modules/ui_components.py
+++ b/modules/ui_components.py
@@ -48,3 +48,11 @@ class FormColorPicker(gr.ColorPicker, gr.components.FormComponent):
def get_block_name(self):
return "colorpicker"
+
+class DropdownMulti(gr.Dropdown):
+ """Same as gr.Dropdown but always multiselect"""
+ def __init__(self, **kwargs):
+ super().__init__(multiselect=True, **kwargs)
+
+ def get_block_name(self):
+ return "dropdown"