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

Implement dynamic navs #90

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Implement dynamic navs #90

wants to merge 3 commits into from

Conversation

cpsievert
Copy link
Collaborator

@cpsievert cpsievert commented Feb 17, 2022

Closes #89
Closes #99

TODO

  • Does it make sense for their to be a ns() method on the Session/ModuleSession? Edit @jcheng5 2023-05-22: I think resolve_id is how this works now.
  • Test that dynamic navs work in modules
  • Write e2e tests for the examples
  • Add nav_prepend and nav_append that are thin wrappers over nav_insert; takes too much thought to achieve these 99% cases otherwise

Comment on lines 120 to 121
def send_input_message(self, id: str, message: Dict[str, object]) -> None:
return super().send_input_message(self.ns(id), message)
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This part is what closes #99...happy to do this in a follow PR if preferred

@cpsievert cpsievert force-pushed the dynamic-navs branch 6 times, most recently from 8d5dbc6 to affed80 Compare April 27, 2022 21:47
@cpsievert cpsievert changed the base branch from server-side-navs to main April 28, 2022 22:50
@cpsievert cpsievert mentioned this pull request May 21, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Implement dynamic navs ui.update_*() functions don't namespace input id when called inside a Module()
2 participants