Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion R/boxes.R
Original file line number Diff line number Diff line change
Expand Up @@ -318,6 +318,7 @@ box <- function(..., title = NULL, footer = NULL, status = NULL,
#' @param side Which side of the box the tabs should be on (\code{"left"} or
#' \code{"right"}). When \code{side="right"}, the order of tabs will be
#' reversed.
#' @param footer Optional footer text.
#'
#' @family boxes
#'
Expand Down Expand Up @@ -367,7 +368,7 @@ box <- function(..., title = NULL, footer = NULL, status = NULL,
#' )
#' }
#' @export
tabBox <- function(..., id = NULL, selected = NULL, title = NULL,
tabBox <- function(..., id = NULL, selected = NULL, title = NULL, footer = NULL,
width = 6, height = NULL, side = c("left", "right"))
{
side <- match.arg(side)
Expand Down Expand Up @@ -402,5 +403,13 @@ tabBox <- function(..., id = NULL, selected = NULL, title = NULL,
)
}

# Add footer
if (!is.null(footer)) {
content <- htmltools::tagAppendChild(
content,
div(class = "box-footer", footer)
)
}

div(class = paste0("col-sm-", width), content)
}
4 changes: 3 additions & 1 deletion man/tabBox.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.