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

UI context properties #2905

Merged
merged 11 commits into from
Apr 22, 2024
Merged

UI context properties #2905

merged 11 commits into from
Apr 22, 2024

Conversation

falkoschindler
Copy link
Contributor

@falkoschindler falkoschindler commented Apr 16, 2024

As an extension to PR #2879, this PR allows to access client, slot, and slot stack via properties like this:

ui.context.client
ui.context.slot
ui.context.slot_stack

The existing getter functions have been preserved but deprecated.

@falkoschindler falkoschindler added the enhancement New feature or request label Apr 16, 2024
@falkoschindler falkoschindler added this to the 1.4.23 milestone Apr 16, 2024
@falkoschindler falkoschindler changed the base branch from main to ui-context April 16, 2024 10:08
Copy link
Member

@rodja rodja left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😎

Base automatically changed from ui-context to main April 22, 2024 10:01
# Conflicts:
#	examples/chat_app/main.py
#	examples/descope_auth/user.py
#	examples/download_text_as_file/main.py
#	examples/infinite_scroll/main.py
#	nicegui/ui.py
#	tests/test_auto_context.py
#	tests/test_interactive_image.py
#	tests/test_javascript.py
#	tests/test_lifecycle.py
#	tests/test_page.py
#	tests/test_storage.py
#	website/documentation/content/page_documentation.py
#	website/documentation/content/storage_documentation.py
@falkoschindler falkoschindler merged commit f7c08cf into main Apr 22, 2024
7 checks passed
@falkoschindler falkoschindler deleted the ui-context-properties branch April 22, 2024 15:58
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.

None yet

2 participants