rshinyrpivottable

rpivotTable in shiny - hide rendererName dropdown list


I am trying to hide the renderer dropdown list within shiny app.

I have tried the method listed here (Hide the filters in Shiny DT datatable) by adding tags$style but it doesn't seem to work.

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)
  })

}

enter image description here


Solution

  • Answering my own question, just need the following line:

    server.R

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