att / rcloud.rcap

RCloud powered dashboards and websites
Other
8 stars 13 forks source link

Message Spinner - function call #286

Closed shaneporter closed 6 years ago

shaneporter commented 6 years ago

Change the function call:

##############
#
#### rcap.progressSpinner.msg(msg=NA,  append=FALSE) ###
#### rcap. messageWidget.msg(msg=NA,  append=FALSE) ###
#
# msg (char list or vector) :  list of named messages. E.g., msg=list(a="abc")
#           names are the identifier variable names for the Widgets. 
#           Only those names included in the list are updated.
# append (logical vector) :  TRUE means successive messages get appended to the current message.
#           FALSE means the message is replaced.
#           Values are repeated to match the length of msg.
##############
# Example:
   rcap.progressSpinner.msg(msg=list(secondSpinnerVariable="Mock processing task page two: ",
                            progressSpinnerVariable="page 2 Running"), 
                            append=FALSE)

   rcap.messageWidget.msg(msg=list(messageWidgetVariable=paste0(" ", msgtext)), append = TRUE)

This approach can update multiple spinners with one call.