Make Tab and Tabs updatable (#5714)

* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
This commit is contained in:
Abubakar Abid 2023-09-27 14:42:55 -07:00 committed by GitHub
parent c10dabd6b1
commit a0fc5a2967
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -0,0 +1,5 @@
---
"gradio": patch
---
fix:Make Tab and Tabs updatable

View File

@ -143,7 +143,7 @@ class Column(Updateable, BlockContext):
}
class Tabs(BlockContext, Changeable, Selectable):
class Tabs(Updateable, BlockContext, Changeable, Selectable):
"""
Tabs is a layout element within Blocks that can contain multiple "Tab" Components.
"""
@ -182,7 +182,7 @@ class Tabs(BlockContext, Changeable, Selectable):
@document()
class Tab(BlockContext, Selectable):
class Tab(Updateable, BlockContext, Selectable):
"""
Tab (or its alias TabItem) is a layout element. Components defined within the Tab will be visible when this tab is selected tab.
Example: