appintro.Rd
Show information about an app during launch such as a 'welcome/what to do' toast message.
appintro(title, message, logo = NULL, logo_position = "title", type = "toast", toast_type = "info", heading_size = "h2", toast_args = list(timeOut = 10000, extendedTimeOut = 10000, position = "top-center", closeButton = TRUE, preventDuplicates = TRUE))
title | character. |
---|---|
message | plain character string or, typically, one wrapping an html snippet. |
logo | the |
logo_position | character, |
type | whether to return a |
toast_type | if |
heading_size | character, wrap the title in html heading tags, defaults to |
toast_args | a list of additional arguments (after |
a shiny::toastr::toast_*
object by default. Alternatively, a character string of html.
The list toast_args
has the following defaults: timeOut = 10000
, extendedTimeOut = timeOut
, position = "top-center"
,
closeButton = TRUE
and preventDuplicates=TRUE
.
If another list is provided, but does not include some of these five arguments, they will
be retained as defaults. Note that this function depends heavily on associated custom CSS. For example, if your message body is
very large, it will not fit in the toast box unless additional css overrides are included in your app for size and position.
Use with care and see this following GitHub gist for details.
#not run