Skip to content

Conversation

@gadenbuie
Copy link
Collaborator

This expands express.ui.page_opts() to accept **kwargs which are then forwarded to the automatically (or manually) selected page function.

I also expanded the docs:

  1. More explicit description in shiny.ui.page_auto() about which page function is selected.
  2. I duplicated that description in shiny.express.ui.page_opts() so that it appears on hover for anyone using ui.page_opts() in an Express app.
  3. I added an example to ui.page_opts() showing the conditional panel in a navbar page pattern, which both motivates ui.page_opts() and provides an example for this common pattern.

Fixes #1308

@gadenbuie gadenbuie marked this pull request as ready for review April 12, 2024 19:19
@gadenbuie gadenbuie requested a review from cpsievert April 12, 2024 19:19
@gadenbuie gadenbuie requested a review from wch April 12, 2024 19:35
@gadenbuie gadenbuie added this pull request to the merge queue Apr 12, 2024
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Apr 12, 2024
@gadenbuie gadenbuie added this pull request to the merge queue Apr 12, 2024
Merged via the queue into main with commit d6df9ae Apr 12, 2024
@gadenbuie gadenbuie deleted the feat/page-opts-kwargs branch April 12, 2024 20:54
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.

Express: Cannot create a navbar page with an id and a sidebar

4 participants