在renderDataTable的时候设置对应列的class为“dt-right”:
server
= function(input
, output
) {
output
$mytable
= renderDataTable
({
mtcars
}, option
=list
(
columnDefs
=list
(
list
(targets
=1:ncol
(mtcars
),
class
="dt-right")
)
)
)
}
转载请注明原文地址:https://blackberry.8miu.com/read-35885.html