argonTabSet: Create a Boostrap 4 tabs

Description Usage Arguments Author(s) Examples

View source: R/argonTabs.R

Description

Build an argon tabs

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
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

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
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"
  )
 )
}

argonR documentation built on Dec. 1, 2019, 1:15 a.m.