Description Usage Arguments Author(s) Examples
View source: R/UIkitSwitcher.R
Dynamically transition through different content panes
1 | UIkitSwitcher(..., animation = NULL, mode = "tabs")
|
... |
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. |
David Granjon, dgranjon@ymail.com
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) {}
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.