如何使列标题字母在rhandsontable中以闪亮的方式加粗

Sum*_*da 1 r shiny rhandsontable

如何在 r 的闪亮包中的 rhandsontable 中使列标题粗体文本?

我有一个闪亮的 rhandsontable,我想将标题中的文本加粗。我该怎么做?有人知道吗?

Por*_*hop 6

您可以将一些添加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)

在此输入图像描述