R/tabs.R

Defines functions bigTabItem bigTabs

Documented in bigTabItem bigTabs

#' Tabs
#' 
#' Create big tabs.
#' 
#' @param ... Tabs, must be [bigTabItem()].
#' 
#' @export 
bigTabs <- function(
  ...
) {
  div(
    id = "big-tabs",
    ...
  )
}

#' Tab
#' 
#' Create a tab.
#' 
#' @param name Name of tab.
#' This is to be reference in the `target` argument
#' of the [sidebarMenuItem()].
#' @param ... Content of the tab.
#' 
#' @export 
bigTabItem <- function(
  name,
  ...
) {
  if(missing(name)) 
    stop("Missing `name`")

  div(
    class = "big-tab d-none",
    `data-name` = name,
    ...
  )
}
bigomics/bigdash documentation built on Sept. 14, 2024, 4:38 a.m.