== Enabling more styling options for actionButton == The Twitter Bootstrap allows for many class styles for buttons. http://getbootstrap.com/2.3.2/base-css.html#buttons
Added support for these styles to the actionButton.
| require(shiny) | |
| require(rCharts) | |
| inputChoices <- c("A", "B", "C", "D") | |
| shinyServer(function(input, output, session){ | |
| input2Choices <- reactive({ | |
| inputChoices[-grep(input$input1, inputChoices)] | |
| }) |
| ?showReactLog | |
| options(shiny.reactlog=TRUE); | |
| session$sendCustomMessage(type="jsCode", | |
| list(code= paste("$('#",id,"').prop('disabled',true)" | |
| ,sep=""))) | |
| tags$head(tags$script(HTML(' | |
| Shiny.addCustomMessageHandler("jsCode", |
| library(shiny) | |
| library(shinyIncubator) | |
| options(shiny.reactlog=TRUE); | |
| shinyServer(function(input, output,session) { | |
| output$test <- renderPlot({ | |
| input$meh | |
| print("wassup") | |
| withProgress(session, min=1, max=15, { |
| library(shiny) | |
| disableActionButton <- function(id,session) { | |
| session$sendCustomMessage(type="jsCode", | |
| list(code= paste("$('#",id,"').prop('disabled',true)" | |
| ,sep=""))) | |
| } | |
| shinyServer(function(input, output,session) { | |
| library(shiny) | |
| shinyServer(function(input,output){ | |
| reval <- reactiveValues(a= 1,b=2,dummy= rnorm(1)) | |
| observe({ | |
| if(input$hello == 0) return() | |
| random.number <- rnorm(1) | |
| reval$dummy <- random.number | |
| b <- reval$b |
== Enabling more styling options for actionButton == The Twitter Bootstrap allows for many class styles for buttons. http://getbootstrap.com/2.3.2/base-css.html#buttons
Added support for these styles to the actionButton.
| library(shiny) | |
| shinyServer(function(input, output, session) { | |
| # Partial example | |
| output$meh <- renderPrint({ | |
| print("Press enter or focusout to update --- ") | |
| print(input$myTextInput ) |
| library(shiny) | |
| shinyServer(function(input, output, session) { | |
| # Partial example | |
| output$meh <- renderPrint({ | |
| print("Meh --- ") | |
| print(input$myTextInput ) | |
| print(input$passInput ) | |
| }) |
| data <- read.csv("c:/bb2.csv") | |
| cor.data <- cor(data[sapply(data,typeof)=="double"],method="spearman") | |
| dist <- function(y,x) { | |
| if(is.null(dim(x))) { | |
| sqrt((x[1] - y[1])^2 + (x[2] - y[2])^2) | |
| } else { | |
| sqrt((x[,1] - y[1])^2 + (x[,2] - y[2])^2) | |
| } |
| #install.packages(c("devtools","svSockets")) # if not already installed | |
| #devtools::install_github("gosocket","analytixware") # if not already installed | |
| #devtools::install_github("shinysky","analytixware") # if not already installed | |
| library(shiny) | |
| library(shinysky) | |
| library(gosocket) | |
| # Define server logic required to generate and plot a random distribution | |
| shinyServer(function(input, output,session) { |