Sum*_*da 1 r shiny rhandsontable
如何在 r 的闪亮包中的 rhandsontable 中使列标题粗体文本?
我有一个闪亮的 rhandsontable,我想将标题中的文本加粗。我该怎么做?有人知道吗?
您可以将一些添加style到表中,如下所示:
library(shiny)
library(rhandsontable)
ui <- fluidPage(
rHandsontableOutput("table1"),
tags$style(type="text/css", "#table1 th {font-weight:bold;}")
)
server=function(input, output, session) {
output$table1 <- renderRHandsontable({
rhandsontable(mtcars,rowHeaders=F)
})
}
shinyApp(ui,server)
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2593 次 |
| 最近记录: |