Options for notify() functions, see
online documentation
for default values and examples.
config_notify(
background = NULL,
textColor = NULL,
childClassName = NULL,
notiflixIconColor = NULL,
fontAwesomeClassName = NULL,
fontAwesomeIconColor = NULL,
backOverlayColor = NULL,
width = NULL,
distance = NULL,
opacity = NULL,
borderRadius = NULL,
rtl = NULL,
messageMaxLength = NULL,
backOverlay = NULL,
plainText = NULL,
showOnlyTheLastOne = NULL,
clickToClose = NULL,
pauseOnHover = NULL,
ID = NULL,
className = NULL,
zindex = NULL,
fontFamily = NULL,
fontSize = NULL,
cssAnimation = NULL,
cssAnimationDuration = NULL,
cssAnimationStyle = NULL,
closeButton = NULL,
useIcon = NULL,
useFontAwesome = NULL,
fontAwesomeIconStyle = NULL,
fontAwesomeIconSize = NULL,
...
)Changes the background color.
Changes the text color.
Changes the class name.
Changes the SVG icon color.
Changes the FontAwesome icon class name (FontAwesome has to be added to the project separately.)
Changes the FontAwesome icon color.
Changes the color of the background overlay.
Changes the width of the notifications.
The distance between positioned notifications and the body element.
Changes the opacity. (Between 0 and 1)
Changes the radius of the notifications corners.
Specifies the text direction to "right-to-left".
The maximum length of the notifications message text.
Adds a background overlay to the notifications.
Strips all HTML tags.
Auto-removes all the notifications except for the last one.
Removes the notification when it has been clicked without waiting for the delay.
Auto-remove functionality will be paused for each notification element when the pointer(mouse) enters on it.
Changes the ID (attribute) of the notifications.
Changes the class name (attribute) of the notifications.
Changes the z-index of the notifications.
Changes the font-family of the notifications message text.
Changes the font-size of the notifications message text.
Enables/disables CSS animations to show/hide the notifications.
Changes the CSS animations duration as milliseconds.
6 types of styles can be used: fade zoom from-right from-top from-bottom from-left
Adds a close button/icon to the notifications. (Notifications with a close button won't disappear until they were clicked.)
Allows using built-in SVG or external FontAwesome icons in the notifications. (By default, built-in SVG icons have been defined.)
Ignores built-in SVG icons and allows to use of external FontAwesome icons.
2 types of styles can be used: basic shadow
Changes the font-size of the FontAwesome icons
Other potential arguments.
A config list that can be used in notify() and other notify_* functions.
library(shiny)
library(shinybusy)
ui <- fluidPage(
tags$h2("config for notify examples"),
actionButton("success", "Success")
)
server <- function(input, output, session) {
observeEvent(input$success, {
notify_success(
"Well done!",
config_notify(
background = "#0431B4",
notiflixIconColor = "#FFF"
)
)
})
}
if (interactive())
shinyApp(ui, server)