Guest User

Untitled

a guest
Oct 23rd, 2017
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.55 KB | None | 0 0
  1. library(shiny)
  2.  
  3. shinyApp(
  4. ui = fluidPage(
  5.  
  6. titlePanel("Styling Action Button"),
  7. sidebarLayout(
  8. sidebarPanel(
  9. h4("Default CSS styling"),
  10. # default styling
  11. actionButton('downloadData1', label= 'Download 1'),
  12. tags$hr(),
  13.  
  14. actionButton("download1", label="Download with style", class = "butt1"),
  15. # style font family as well in addition to background and font color
  16. tags$head(tags$style(".butt1{background-color:orange;} .butt1{color: black;} .butt1{font-family: Courier New}"))
  17.  
  18.  
  19. ),
  20. mainPanel()
  21. )
  22. ),
  23.  
  24. server = function(input, output){}
  25.  
  26. )
  27.  
  28. library(shiny)
  29.  
  30. shinyApp(
  31. ui = fluidPage(
  32. navbarPage("Test multi page",
  33. tabPanel("test",
  34. titlePanel("Styling Action Button"),
  35. sidebarLayout(
  36. sidebarPanel(
  37. h4("Default CSS styling"),
  38. # default styling
  39. actionButton('downloadData1', label= 'Download 1'),
  40. tags$hr(),
  41.  
  42. actionButton("download1", label="Download with style", class = "butt1"),
  43. # style font family as well in addition to background and font color
  44. tags$head(tags$style(".butt1{background-color:orange;} .butt1{color: black;} .butt1{font-family: Courier New}"))
  45.  
  46.  
  47. ),
  48. mainPanel()
  49. )
  50. ))),
  51.  
  52. server = function(input, output){}
  53.  
  54. )
Add Comment
Please, Sign In to add comment