Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add on_value_change parameter to ui.expansion #1356

Merged
merged 1 commit into from
Aug 7, 2023
Merged

Conversation

falkoschindler
Copy link
Contributor

@falkoschindler falkoschindler commented Aug 7, 2023

This PR implements the idea from #1354.

Try it with:

with ui.expansion('Expansion', on_value_change=lambda e: ui.notify(e.value)) as expansion:
    ui.label('Inside expansion')

@falkoschindler falkoschindler added this to the 1.3.8 milestone Aug 7, 2023
@falkoschindler falkoschindler added the enhancement New feature or request label Aug 7, 2023
@falkoschindler falkoschindler self-assigned this Aug 7, 2023
@falkoschindler falkoschindler merged commit 852be64 into main Aug 7, 2023
4 checks passed
@falkoschindler falkoschindler deleted the expansion branch August 7, 2023 09:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant