我想在selectInput
里面放一个,dashboardHeaderPlus
但这会使标题超出范围,甚至与边栏一样混乱,如图所示:
它的目的是让selectInput
外观看起来像 facebook 搜索栏,这意味着居中而不影响标题,并在可能的情况下使用放大镜图标设置样式。像这样:
library(shiny)
library(shinydashboard)
library(shinydashboardPlus)
library(shinyWidgets)
MenuProfesor <- function(){
selectInput(inputId = "Search",
label = NULL,
selected = FALSE,
multiple = FALSE,
choices = c('1','2','3','4'))
}
header <- dashboardHeaderPlus(
title = 'Planificación UAI',
enable_rightsidebar = FALSE,
left_menu = tagList( MenuProfesor())
)
ui <- dashboardPage(
header,
dashboardSidebar(),
dashboardBody()
)
server <- function(input, output, session) {
}
shinyApp(ui, server)