【发布时间】:2018-06-18 16:21:27
【问题描述】:
您好,我在 R 中使用 datatable javascript library 的这个端口
当我渲染表格时,“外观”如下所示:notice the round edges
我注意到一个使用相同库的 python dash 应用程序如下所示 notice the square edges
在R中我的代码看起来像这样,问题可能是“主题”,我该如何修改“圆形”,所以它看起来更像“方形”
table = datatable(data,
width='100%',
selection=list(mode='multiple', target='column'),
style='bootstrap',
filter = list(position = 'top', clear = TRUE, plain = FALSE),
extensions = c('Buttons', 'ColReorder'),
options = list(pageLength=30, autoWidth=TRUE, columnDefs=list(list(classname='dt-center')), dom = 'Bfrtip', buttons = c('copy', 'csv', 'excel'), colReorder=TRUE)) %>%
formatStyle( 0, target= 'row',color = 'black', fontWeight ='bold', lineHeight='50%')
谢谢
【问题讨论】:
-
我不明白。默认情况下,这些框不是“圆形”的,即使使用您的代码,我也会得到方形框。
标签: r datatables shiny dt