【问题标题】:rpivotTable in shiny - hide rendererName dropdown list闪亮的 rpivotTable - 隐藏 rendererName 下拉列表
【发布时间】:2018-11-26 06:36:57
【问题描述】:

我正在尝试在闪亮的应用程序中隐藏渲染器下拉列表。

我已经尝试了此处列出的方法 (Hide the filters in Shiny DT datatable),方法是添加 tags$style,但它似乎不起作用。

ui.R

library(shiny)
library(rpivotTable)

shinyUI(fluidPage(

  tags$style(type = 'text/css', "#pivot tbody > tr > td:nth-child(1)  {display:none; }"),

    rpivotTableOutput('pivot')
))

server.R

library(shiny)
library(rpivotTable)

function(input, output, session) {

  output$pivot <- renderRpivotTable({
    rpivotTable(iris)
  })

}

【问题讨论】:

    标签: r shiny rpivottable


    【解决方案1】:

    回答我自己的问题,只需要下面一行:

    server.R

    tags$style(type = 'text/css', ".pvtRenderer {visibility: hidden}")
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2021-03-02
      • 2016-11-03
      • 2015-08-03
      • 2020-07-27
      • 2023-03-27
      • 2020-07-27
      • 1970-01-01
      相关资源
      最近更新 更多