Description Usage Arguments Examples
This creates an icon tag using Semantic UI styles.
1 |
class |
A name of an icon. Look at http://semantic-ui.com/elements/icon.html for all possibilities. |
... |
Other arguments to be added as attributes of the tag (e.g. style, class etc.) |
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 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 | if (interactive()){
library(shiny)
library(shiny.semantic)
ui <- function() {
shinyUI(
semanticPage(
# Basic icon
icon("home"),
br(),
# Different size
icon("small home"),
icon("large home"),
br(),
# Disabled icon
icon("disabled home"),
br(),
# Loading icon
icon("spinner loading"),
br(),
# Icon formatted as link
icon("close link"),
br(),
# Flipped
icon("horizontally flipped cloud"),
icon("vertically flipped cloud"),
br(),
# Rotated
icon("clockwise rotated cloud"),
icon("counterclockwise rotated cloud"),
br(),
# Circular
icon("circular home"),
br(),
# Bordered
icon("bordered home"),
br(),
# Colored
icon("red home"),
br(),
# inverted
segment(class = "inverted", icon("inverted home"))
)
)
}
server <- shinyServer(function(input, output, session) {
})
shinyApp(ui = ui(), server = server)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.