我正在使用一些数据表(DT R包)构建一个闪亮的应用程序。我能够使用formatCurrency()对列进行舍入,但是我无法对过滤器内的数字进行舍入,如下图所示。
我正在使用renderDT({})
,具有以下设置:
DT::renderDT({
df
},extensions = c(
'ColReorder'
),
rownames = FALSE,
filter = c("top"),
options= list(
search = list(regex = TRUE, caseInsensitive = TRUE),
pageLength = 6,
lengthMenu = c(5, 10, 25, 50),
colReorder = TRUE
), style = 'bootstrap'
)