Added missing "secondary" bootstrap button style

This commit is contained in:
2026-02-05 11:23:00 +00:00
parent 0d4b0e362b
commit fe1bd6c25e

View File

@@ -41,7 +41,8 @@ htmlRemoveClasses <- function(el, classes) {
#' htmlButtonStyle(x, "warning")
htmlButtonStyle <- function(el, style) {
stopifnot(style %in% c(
"default", "primary", "info", "warning", "success", "danger", "link"
"default", "primary", "secondary", "info", "warning", "success", "danger",
"link"
))
el <- htmlRemoveClasses(el, "btn-default")
el <- htmlAddClasses(el, paste0("btn-", style))