You are on page 1of 1

output$burncost<-renderDataTable({

DT::datatable(
sel.reltv <- subset(reltv, category %in% selected()),
extensions='ColVis',
## adds the ColVis extension to
Show/Hide Columns
options = list(dom='C<"clear">t',
initComplete = JS(
"function(settings, json) {",
"$(this.api().table().header()).css({'background-color':
'#1b85b8', 'color': '#fff'});","}"),
## JS code for
table color
columnDefs=list(list(className='dt-center',targets=2:7)), #
#Centers the contents of DT
colVis=list(exclude=c(c(0:1,4),c(0,7)))
),
container=sketch,
rownames=FALSE)%>%
formatRound(3:8,3)

You might also like