Compare commits

...

2 Commits

Author SHA1 Message Date
c3e00af747 Increment version number to 0.0.4 2026-01-26 14:02:41 +00:00
66bcc3aef7 Fixed shrunk box header once title is removed 2026-01-26 14:02:20 +00:00
2 changed files with 5 additions and 2 deletions

View File

@@ -1,6 +1,6 @@
Package: AVSDevR.HTMLUtils
Title: Utility Functions For Modifying R HTML Elements
Version: 0.0.3
Version: 0.0.4
Authors@R:
person("Craig", "Williams", , "craig@avsdev.uk", role = c("aut", "cre"))
Description: Collection of utility functions for modifying HTML markup of

View File

@@ -169,6 +169,9 @@ htmlRemoveBoxTitle <- function(box, removeHeader = FALSE) {
if (removeHeader) {
htmltools::tagQuery(box)$find(".box-header")$remove()$allTags()
} else {
htmltools::tagQuery(box)$find(".box-title")$remove()$allTags()
htmltools::tagQuery(box)$
find(".box-title")$
replace(htmltools::tags$span(htmltools::HTML("&nbsp;")))$
allTags()
}
}