Skip to content

fab_position = "bottom-left" removes logout button #123

Closed
@FreyGeospatial

Description

@FreyGeospatial

Use "test" for username and password to enter the app. Logout button does not appear in Chrome, Firefox, or Edge. Commenting out fab_position = "bottom-left" makes the button re-appear in the default bottom-right position.

if (interactive()) {
  library(shiny)
  library(DT)
  library(shinymanager)
  library(bs4Dash)
  
  credentials <- data.frame(
    user = c("test"),
    password = c("test"), 
    stringsAsFactors = FALSE
  )
  
  shinyApp(
    ui = secure_app(fab_position = "bottom-left",
      dashboardPage(
      
      header = dashboardHeader(),
      sidebar = dashboardSidebar(),
      body = dashboardBody(
        
        fluidRow(column(12, DT::dataTableOutput('mytable')))
      ),
      footer = dashboardFooter()
    )),
    server = function(input, output) {
      result_auth <- secure_server(check_credentials = check_credentials(credentials))
      output$mytable <- DT::renderDataTable(iris,
                                            #extensions = "FixedHeader",
                                            #style="bootstrap",
                                            options = list(
                                              dom = 't',
                                              lengthMenu = c(50, 100),
                                              pageLength = 20,
                                              scrollX=TRUE,
                                              autoWidth = TRUE,
                                              paging=TRUE,
                                              searching=FALSE,
                                              ordering=TRUE
                                              #fixedHeader = TRUE,
                                            ))
    }
  
  )
}

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