Skip to content

uiOutput in "between" argument for miniTabstripPanel pushes the buttons down #7

Description

@qinzhu

Hi, I was trying to add reactive elements to the bottom panel in dialog viewer. But it seems the class "shiny-html-output" used by uiOutput is causing incorrect css styling of the page, pushing the tab buttons down.
Here's a minimum example.

testfun <- function() {
    ui <- miniPage(
        
        gadgetTitleBar("testgadget"),
        miniTabstripPanel(
            miniTabPanel("Data", icon = icon("table"),
                         miniContentPanel(
                             tags$p("Some data")
                         )
            ),
            miniTabPanel("Visualize", icon = icon("area-chart"),
                         miniContentPanel(
                             tags$p("Some figure")
                         )
            ),
            
            between = list(
                uiOutput("sometext")
            )
        )
    )
    server <- function(input, output) {
        
        output$sometext <- renderUI({
            return("some text")
        })
        
        observeEvent(input$done, {
            stopApp()
        })
        
    }
    runGadget(ui, server, viewer = dialogViewer("test"))
}

Is there any workaround for this problem?

Thanks a lot!
Qin

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions