Skip to content

How can we collapse a ui.expansion? #329

Closed Answered by smojef
smojef asked this question in Q&A
Discussion options

You must be logged in to vote

But all this is fixed on main and in the upcoming version 1.1.5 where ui.expansion is a proper ValueElement with everything being correctly wired up.

Thanks! ui.button('Close', on_click=lambda _:setattr(element, 'value', False)) works nicely with 1.1.5.

Replies: 5 comments 3 replies

Comment options

You must be logged in to vote
2 replies
@smojef
Comment options

@falkoschindler
Comment options

Comment options

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

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by smojef
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants