【发布时间】:2022-01-04 23:12:04
【问题描述】:
我有以下代码用于闪亮的应用程序:
library(shiny)
library(tidyverse)
data_for_table <- read_csv("data/ForStatAnalysis.csv") %>% select(-ElectionYear ) %>% select(-State_abb) %>% rename('Total Migration'=totalMigration)
shinyServer(function(input, output) {
output$base_data <- renderDataTable(
data_for_table,
options=list(
pageLength = 10, scrollX=TRUE
)
)
)
})
这使用搜索列(我喜欢)呈现,但是,搜索列位于网格的底部,这很奇怪。 它看起来像这样: 我在https://datatables.net/reference/option/ 尝试了各种选项,但我似乎无法弄清楚哪个参数会使列搜索出现在网格的顶部。 有谁知道如何将这些列搜索器移到网格顶部?
【问题讨论】:
标签: r shiny shinydashboard