added textbox to visualize current slider value
This commit is contained in:
@@ -68,6 +68,7 @@ def update_instance_table(
|
||||
if tag["Key"] == "Name":
|
||||
name = tag["Value"]
|
||||
table.add_rows({"name": name, "status": instance.state["Name"]})
|
||||
log.info("Table updated")
|
||||
|
||||
|
||||
def nicegui_ui() -> None:
|
||||
@@ -90,8 +91,10 @@ def nicegui_ui() -> None:
|
||||
timer = ui.timer(
|
||||
15, lambda: update_instance_table(ec2_resource, container, columns)
|
||||
)
|
||||
ui.slider(min=5, max=120, step=5, value=15).bind_value_to(timer)
|
||||
|
||||
textarea = ui.textarea()
|
||||
ui.slider(min=5, max=120, step=5, value=15).bind_value_to(
|
||||
timer, "interval"
|
||||
).bind_value_to(textarea)
|
||||
ui.run()
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user