mirror of
https://github.com/gradio-app/gradio.git
synced 2025-01-30 11:00:11 +08:00
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:
parent
c10dabd6b1
commit
a0fc5a2967
5
.changeset/full-hornets-obey.md
Normal file
5
.changeset/full-hornets-obey.md
Normal file
@ -0,0 +1,5 @@
|
||||
---
|
||||
"gradio": patch
|
||||
---
|
||||
|
||||
fix:Make Tab and Tabs updatable
|
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user