send_notification_message <- function(
id = NULL,
options = NULL,
session = shiny::getDefaultReactiveDomain()
) {
message <- list(
# your logic
)
session$sendCustomMessage(type = "notification",
message)
}
|
$(function() {
Shiny.addCustomMessageHandler(
'notification', function(message) {
Bulma('body').notification({
body: 'Example notification',
color: 'info'
}).show();
});
});
|