Skip to content

Commit

Permalink
styleHeaderCell must have unique id
Browse files Browse the repository at this point in the history
  • Loading branch information
vincentarelbundock committed Jan 20, 2024
1 parent 9cd52df commit e5b11d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions R/tt_bootstrap.R
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ tt_bootstrap <- function(x, caption, theme, width, notes, ...) {

# table and styling function in JS must have different names when there is more than one table on a page.
template <- gsub("styleCell", paste0("styleCell_", id), template, fixed = TRUE)
template <- gsub("styleHeaderCell", paste0("styleHeaderCell_", id), template, fixed = TRUE)
template <- gsub("$tinytable_TABLE_ID", paste0("tinytable_", id), template, fixed = TRUE)

# header
Expand Down

0 comments on commit e5b11d5

Please sign in to comment.