Skip to content

Commit

Permalink
docs: #84 formatting DT
Browse files Browse the repository at this point in the history
  • Loading branch information
bms63 committed Jun 13, 2023
1 parent 0203d28 commit d2ee389
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions vignettes/xportr.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -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")`.
Expand All @@ -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()
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit d2ee389

Please sign in to comment.