tabSwitchUI: Create button to switch tabs

View source: R/mod_switch_button.R

tabSwitchUIR Documentation

Create button to switch tabs

Description

Create button to switch tabs

Usage

tabSwitchUI(.tab, id)

Arguments

.tab

The tabItem object.

id

The input variable to read value from.

Examples

if (interactive()) {
  library(shinydashboard)
  library(magrittr)
  library(dcamodules)
  # add after tabItems via pipe %>%
  # or move tabItems inside of tabSwitchUI
  tabItems(
    tabItem(tabName = "awesome-tab")
  ) %>% tabSwitchUI()
}

Sage-Bionetworks/dcamodules documentation built on Jan. 26, 2023, 1:15 a.m.