Learn R Programming

ravedash (version 0.1.2)

ravedash_footer: A hovering footer at bottom-right

Description

Internally used. Do not call explicitly

Usage

ravedash_footer(
  module_id = NULL,
  label = "Run Analysis",
  auto_recalculation = TRUE,
  class = NULL,
  style = NULL
)

Value

'HTML' tags

Arguments

module_id

'RAVE' module ID

label

run-analysis button label; default is "Run Analysis"

auto_recalculation

whether to show the automatic calculation button; default is true

class

additional class for the footer

style

additional style for the footer

Examples

Run this code

library(shiny)
# dummy variables for the example
data_loaded <- TRUE

# UI code
ravedash_footer("my_module")

# server code to set message
server <- function(input, output, session){

  module_server_common(input, output, session, function(){

    # check if data has been loaded
    if(data_loaded) {

      # if yes, then set the footer message
      fire_rave_event("loader_message",
                      "my_project/subject - Epoch: Auditory")
      return(TRUE)
    } else {

      # No data found, unset the footer message
      fire_rave_event("loader_message", NULL)
      return(FALSE)
    }

  })
}

Run the code above in your browser using DataLab