cowa
1
I render one table as like this
output$mytable12 <- DT::renderDataTable({
A<-as.array(tdata$xxx)
T<- as.array(tdata$yyy)
IN<-intersect(A,T)
DT::datatable((as.matrix(IN)),class = 'cell-border stripe',
caption = "xxxxx",colnames ="xxxx")
How to reduce the size and put all the values in center
Please find attached screen shot
Check out https://datatables.net/reference/option/
I think you need
options = list(
paging = TRUE,
pageLength = 5,
columnDefs = list(list(className = "dt-center", targets = "_all"))
)
# https://stackoverflow.com/questions/50912519/select-the-number-of-rows-to-display-in-a-datatable-based-on-a-slider-input/50944393
# https://stackoverflow.com/questions/35749389/column-alignment-in-dt-datatable
system
Closed
3
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.