UIkitSwitcher: Create an UIkit switcher nav menu

Description Usage Arguments Author(s) Examples

View source: R/UIkitSwitcher.R

Description

Dynamically transition through different content panes

Usage

1
UIkitSwitcher(..., animation = NULL, mode = "tabs")

Arguments

...

Slot for UIkitSwitcherItem.

animation

Apply animation to the switcher content. See https://getuikit.com/docs/animation.

mode

Switcher mode: "switcher" or "tabs". "tabs" 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
if(interactive()){
library(shiny)

shiny::shinyApp(
 ui = UIkitPage(
   title = "My UIkit application",
   UIkitSwitcher(
    animation = "fade",
    mode = "switcher",
    UIkitSwitcherItem(
     tabName = "tab1",
     "Tab content 1"
    ),
    UIkitSwitcherItem(
     tabName = "tab2",
     "Tab content 2"
    )
   )
 ),
 server = function(input, output) {}
 )
}

DivadNojnarg/shinyUIkit documentation built on July 24, 2019, 8:17 a.m.