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

Make it easier to include header/footer content in tabsetPanel()/navlistPanel() #3322

Closed
cpsievert opened this issue Mar 6, 2021 · 0 comments · Fixed by #3315
Closed

Make it easier to include header/footer content in tabsetPanel()/navlistPanel() #3322

cpsievert opened this issue Mar 6, 2021 · 0 comments · Fixed by #3315

Comments

@cpsievert
Copy link
Collaborator

navbarPage() has header/footer arguments for including content that should appear on every 'page'. This is a quite useful feature that is missing from tabsetPanel() and navlistPanel(). For example, if I wanted to add a link break bewteen the nav and content, I currently have to do that on every tab:

tabsetPanel(
  tabPanel("a", br(), "a"),
  tabPanel("b", br(), "b")
)

It'd be much easier to do:

tabsetPanel(
  header = br(),
  tabPanel("a",  "a"),
  tabPanel("b", "b")
)

This would also open the possibility of including inputs/outputs that should appear on every tab:

tabsetPanel(
  header = textInput("foo", "bar"),
  tabPanel("a",  "a"),
  tabPanel("b", "b")
)
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 a pull request may close this issue.

1 participant