Skip to content
Discussion options

You must be logged in to vote

toggle?

from nicegui import ui

toggle1 = ui.toggle([1, 2, 3], value=1)
toggle2 = ui.toggle({1: 'A', 2: 'B', 3: 'C'}).bind_value(toggle1, 'value')

ui.run()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@XuanShine
Comment options

Answer selected by XuanShine
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants