Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- library(shiny)
- shinyApp(
- ui = fluidPage(
- titlePanel("Styling Action Button"),
- sidebarLayout(
- sidebarPanel(
- h4("Default CSS styling"),
- # default styling
- actionButton('downloadData1', label= 'Download 1'),
- tags$hr(),
- actionButton("download1", label="Download with style", class = "butt1"),
- # style font family as well in addition to background and font color
- tags$head(tags$style(".butt1{background-color:orange;} .butt1{color: black;} .butt1{font-family: Courier New}"))
- ),
- mainPanel()
- )
- ),
- server = function(input, output){}
- )
- library(shiny)
- shinyApp(
- ui = fluidPage(
- navbarPage("Test multi page",
- tabPanel("test",
- titlePanel("Styling Action Button"),
- sidebarLayout(
- sidebarPanel(
- h4("Default CSS styling"),
- # default styling
- actionButton('downloadData1', label= 'Download 1'),
- tags$hr(),
- actionButton("download1", label="Download with style", class = "butt1"),
- # style font family as well in addition to background and font color
- tags$head(tags$style(".butt1{background-color:orange;} .butt1{color: black;} .butt1{font-family: Courier New}"))
- ),
- mainPanel()
- )
- ))),
- server = function(input, output){}
- )
Add Comment
Please, Sign In to add comment