如何使列标题字母在闪亮的横纹中变粗 [英] How to make column heading letters bold in rhandsontable in shiny

查看:70
本文介绍了如何使列标题字母在闪亮的横纹中变粗的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在r的闪亮包中使rhosonson中的列标题为粗体?

How to make column heading bold text in rhandsontable in shiny package of r?

我有一个闪闪发光的电子书,我想将标题中的文本加粗.我该怎么做?有人知道吗?

I have a rhandsontable in shiny that I want to make bold the text in the header. How can I do it? Does anyone know?

推荐答案

您可以这样在表中添加一些style:

You can add some style to your table as so:

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)

这篇关于如何使列标题字母在闪亮的横纹中变粗的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆