argonTabSet: Create a Boostrap 4 tabs

View source: R/argonTabs.R

argonTabSetR Documentation

Create a Boostrap 4 tabs

Description

Build an argon tabs

Usage

argonTabSet(
  ...,
  id,
  card_wrapper = FALSE,
  horizontal = TRUE,
  circle = FALSE,
  size = "sm",
  width = 6,
  iconList = NULL
)

Arguments

...

Slot for argonTab.

id

argonTabs id. Should be unique.

card_wrapper

Whether to embed tab content in a card. FALSE by default.

horizontal

Whether to display tabs horizontally. TRUE by default.

circle

Whether to display circled design. FALSE by default.

size

Tabs size. "sm" by default. "md", "lg".

width

Tabs width. Between 1 and 12.

iconList

A list of argonIcon or icon. The lenght must have the same length as the number of tabs. NULL by default.

Author(s)

David Granjon, dgranjon@ymail.com

Examples

if (interactive()) {
 library(argonR)
 argonTabSet(
  id = "tabset1",
  card_wrapper = TRUE,
  horizontal = TRUE,
  circle = FALSE,
  size = "sm",
  width = 6,
  iconList = list(
   argonIcon("cloud-upload-96"), 
   argonIcon("bell-55"), 
   argonIcon("calendar-grid-58")
  ),
  argonTab(
    tabName = "Tab 1",
    active = FALSE,
    "tabText1"
  ),
  argonTab(
    tabName = "Tab 2",
    active = TRUE,
    "tabText2"
  ),
  argonTab(
    tabName = "Tab 3",
    active = FALSE,
    "tabText3"
  )
 )
}



RinteRface/argonR documentation built on Feb. 1, 2024, 4:40 p.m.