diff options
author | AUTOMATIC1111 <16777216c@gmail.com> | 2023-04-29 13:10:16 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-29 13:10:16 +0000 |
commit | 725a3849d2761d40808899e9b1bcf594dd33109d (patch) | |
tree | 657962e52bbc50e3bd51ea292e616c2372501d58 /modules/ui_components.py | |
parent | c84118d70d7c3dd2f741f9e89b9a8a4643f27f98 (diff) | |
parent | 8863b31d83b527d041ca45e23b9af99e2346081a (diff) | |
download | stable-diffusion-webui-gfx803-725a3849d2761d40808899e9b1bcf594dd33109d.tar.gz stable-diffusion-webui-gfx803-725a3849d2761d40808899e9b1bcf594dd33109d.tar.bz2 stable-diffusion-webui-gfx803-725a3849d2761d40808899e9b1bcf594dd33109d.zip |
Merge branch 'dev' into pr/xyz-sort-001
Diffstat (limited to 'modules/ui_components.py')
-rw-r--r-- | modules/ui_components.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/modules/ui_components.py b/modules/ui_components.py index 2b1da2cb..64451df7 100644 --- a/modules/ui_components.py +++ b/modules/ui_components.py @@ -62,3 +62,13 @@ class DropdownMulti(FormComponent, gr.Dropdown): def get_block_name(self):
return "dropdown"
+
+
+class DropdownEditable(FormComponent, gr.Dropdown):
+ """Same as gr.Dropdown but allows editing value"""
+ def __init__(self, **kwargs):
+ super().__init__(allow_custom_value=True, **kwargs)
+
+ def get_block_name(self):
+ return "dropdown"
+
|