Skip to content

Commit

Permalink
Updated upload input to have the same interface as other components
Browse files Browse the repository at this point in the history
Updated dependencies
  • Loading branch information
Declow committed Oct 4, 2024
1 parent 628b3c1 commit 4282312
Show file tree
Hide file tree
Showing 5 changed files with 709 additions and 681 deletions.
2 changes: 1 addition & 1 deletion examples/run_simple.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ async def test(request: Request):
ui.markdown(code)
ui.link("some text", "/second").classes("btn")

ui.upload(name="file", on_upload=handle_upload, target=lambda: table.id)
ui.upload(name="file").on_upload(on_upload=handle_upload, target=lambda: table.id)
ui.checkbox("check")
table = ui.table(pd.DataFrame())
ui.dropdown("select", ["item 1", "item 2"], "Pick item")
Expand Down
4 changes: 0 additions & 4 deletions examples/run_tabs.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,6 @@ async def test():
with ui.tab("Content 2"):
with ui.col():
ui.label("asd2")
ui.label("asd2")
ui.label("asd2")
ui.label("asd2")
ui.label("asd2")
with ui.tab("This is 3").active():
ui.label("cccxxx3")
ui.spinner().infinity()
Expand Down
Loading

0 comments on commit 4282312

Please sign in to comment.