How do I suppress row names when using DT::renderDataTable in R shiny? -
as per explanation in section 2.3 here, can remove rownames datatable setting rownames = false
how suppress row names when using dt::renderdatatable
in r shiny? following doesn't work because if @ datatables options reference there no rownames option
output$subsettingtable <- dt::renderdatatable( subsettable(), filter = 'top', server = false, options = list(pagelength = 5, autowidth = true, rownames= false ))
my question similar 1 here. answers there rendertable
, i've tried making answers there work dt::renderdatatable
0 success.
please careful read pages of functions know argument belongs function. in case, rownames
argument belongs datatable()
function, put inside options
argument, , wrong. dt::renderdatatable()
accepts either data object or table widget first argument (again, please read page), either of following expressions should work:
dt::renderdatatable(datatable( subsettable(), filter = 'top', server = false, options = list(pagelength = 5, autowidth = true), rownames= false )) dt::renderdatatable( subsettable(), filter = 'top', server = false, options = list(pagelength = 5, autowidth = true), rownames= false )
in latter case, rownames = false
passed datatable()
internally, per documentation of ...
argument of page.
Comments
Post a Comment