Skip to content

Commit

Permalink
Make Tab and Tabs updatable (#5714)
Browse files Browse the repository at this point in the history
* fix

* add changeset

---------

Co-authored-by: gradio-pr-bot <gradio-pr-bot@users.noreply.github.com>
  • Loading branch information
abidlabs and gradio-pr-bot committed Sep 27, 2023
1 parent c10dabd commit a0fc5a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/full-hornets-obey.md
@@ -0,0 +1,5 @@
---
"gradio": patch
---

fix:Make Tab and Tabs updatable
4 changes: 2 additions & 2 deletions gradio/layouts.py
Expand Up @@ -143,7 +143,7 @@ def update(
}


class Tabs(BlockContext, Changeable, Selectable):
class Tabs(Updateable, BlockContext, Changeable, Selectable):
"""
Tabs is a layout element within Blocks that can contain multiple "Tab" Components.
"""
Expand Down Expand Up @@ -182,7 +182,7 @@ def update(


@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:
Expand Down

0 comments on commit a0fc5a2

Please sign in to comment.