RagGrid icon indicating copy to clipboard operation
RagGrid copied to clipboard

How to remove row index column?

Open jacob-lester opened this issue 5 years ago • 1 comments

Can't figure out how to remove the first column from the grid that has the row indexes. There is no label for this column, so I cannot access it programmatically using colOpts.

library(shiny)
library(RagGrid)

ui <- shinyUI(fluidPage(
  title = 'Use the RagGrid package in shiny',
  fluidRow(
    column(2),
    column(8, RagGrid::RagGridOutput('tbl1')),
    column(2)
  )
))

server <- shinyServer(function(input, output, session) {
  output$tbl1 <- renderRagGrid(aggrid(iris))
})

shinyApp(ui = ui, server = server)

Example here

jacob-lester avatar Sep 05 '18 19:09 jacob-lester