Advertisement
Guest User

shinytable_ticks_ui.R

a guest
Jun 25th, 2014
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
R 0.93 KB | None | 0 0
  1. library(shiny)
  2. library(shinyTable)
  3. #' Define UI for application that demonstrates a simple Handsontable
  4. #' @author Jeff Allen \email{jeff@@trestletech.com}
  5. shinyUI(pageWithSidebar(
  6.  
  7.   # Application title
  8.   headerPanel("Simple Shiny Table!"),
  9.  
  10.   sidebarPanel(
  11.     #sliderInput("slider", "Number of rows:", 1, 26, 5),
  12.     #HTML("<hr />"),
  13.     helpText(HTML("A simple table with validation. The first column must be a number and if it's >= 100, it will be assigned the value of 99. Other columns can be anything.
  14.                   Additionally, the second column has server-side styling applied and will highlight as 'invalid' any value &gt;= 100, and will 'warn' on values &gt;= 50.
  15.                  <p>Created using <a href = \"http://github.com/trestletech/shinyTable\">shinyTable</a>."))
  16.   ),
  17.  
  18.   # Show the simple table
  19.   mainPanel(
  20.     htable("tbl", colHeaders="provided"),
  21.     br(),
  22.     verbatimTextOutput('session')
  23.   )
  24. ))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement