metroTabs: Create a Metro 4 tab container

Description Usage Arguments Author(s) Examples

View source: R/metro-tabs.R

Description

Build a Metro tab container

Usage

1
2
3
4
5
6
metroTabs(
  ...,
  mode = NULL,
  position = c("horizontal", "vertical"),
  align = c("start", "center", "end")
)

Arguments

...

Slot for metroTab.

mode

Tab mode: NULL or "pills", "text" and "group".

position

Tab position: "horizontal" by default or "vertical".

align

Tab align: "start", "center" or "end".

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
if(interactive()){
 library(shiny)
 library(shinyMetroUi)

 shiny::shinyApp(
   ui = metroPage(
     metroTabs(
      mode = "pills",
      position = "horizontal",
      metroTab(tabName = "Tab 1", "test 1"),
      metroTab(tabName = "Tab 2", "test 2"),
      metroTab(tabName = "Tab 3", "test 3")
     )
   ),
   server = function(input, output) {}
 )
}

RinteRface/shinyMetroUi documentation built on Dec. 31, 2019, 8:47 a.m.