From d2ee389e1f6a9fa2bb388fc062b469e60c39d6fd Mon Sep 17 00:00:00 2001 From: bs832471 Date: Tue, 13 Jun 2023 20:46:21 +0000 Subject: [PATCH] docs: #84 formatting DT --- vignettes/xportr.Rmd | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/vignettes/xportr.Rmd b/vignettes/xportr.Rmd index cf472fe0..028f41fb 100644 --- a/vignettes/xportr.Rmd +++ b/vignettes/xportr.Rmd @@ -82,7 +82,8 @@ adsl <- admiral::admiral_adsl DT::datatable(adsl, options = list( autoWidth = FALSE, scrollX = TRUE, pageLength = 5, lengthMenu = c(5, 10, 15, 20) -)) +)) %>% + formatStyle(0, target = "row", color = "black", backgroundColor = "white", fontWeight = "bold", lineHeight = "70%") ``` **NOTE:** The `ADSL` dataset can be created by using this command `admiral::use_ad_template("adsl")`. @@ -109,7 +110,8 @@ var_spec_view <- var_spec %>% DT::datatable(var_spec_view, options = list( autoWidth = FALSE, scrollX = TRUE, pageLength = 5, lengthMenu = c(5, 10, 15, 20) -)) +)) %>% + formatStyle(0, target = "row", color = "black", backgroundColor = "white", fontWeight = "bold", lineHeight = "70%") ``` # xportr_type() @@ -168,7 +170,8 @@ adsl_order <- xportr_order(adsl, var_spec, domain = "ADSL", verbose = "message") DT::datatable(adsl_order, options = list( autoWidth = FALSE, scrollX = TRUE, pageLength = 5, lengthMenu = c(5, 10, 15, 20) -)) +)) %>% + formatStyle(0, target = "row", color = "black", backgroundColor = "white", fontWeight = "bold", lineHeight = "70%") ``` # xportr_format()