Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图在 R 中的 Reactable 表的特定行下方放置黑色边框。例如,以cars数据框为例,我想在使用下面的代码生成的表的第 2 行和第 4 行下方放置一条水平黑线:
cars
library(reactable) reactable(head(cars))
我希望输出看起来像下图中的输出:
您可以使用该rowStyle参数,如:
rowStyle
library(reactable) reactable(head(cars), rowStyle = function(index) { if (index %in% c(3, 5)) { list(`border-top` = "thin solid") } })