R/utils_table.R

Defines functions table_column_alignment

table_column_alignment <- function(.data) {

  # centered <- c(
  #   "Total Counts"
  # )
  
  left <- c(
    "Country", "Subnational"
  )
  
  
  cols <- names(.data)
  
  list(
    # list(className = "table-text-center", targets = which(cols %in% centered) - 1),
    list(className = "table-text-nocenter", targets = which(cols %in% left) - 1)
  )
}
Rare-Technology/HHS_Dashboard documentation built on May 11, 2022, 8:04 a.m.