I have a header for use in each tab of a tabset, actually in each headerPanel of a pageWithSidebar within each tab.
I thought I could create a header with something like
output$header = renderUI({
...
})
and call it with something like
headerPanel(uiOutput('header'),windowTitle="PDT")
for each of the headers in each of the tabs.
But... apparently this is not possible. Apparently I cannot access uiOutput('header') multiple times.
If, however I define separate (identical) headers output$header1, output$header2, etc., I can access them with uiOutput('header1'), uiOutput('header2'), etc without a problem.
Seems crazy that I I have to repeat so much code with the multiple output$headers. Probably I am not understanding something about the shiny relationship between R and javascript?