if (interactive()) {
library(shiny)
library(shinyMobile)
shinyApp(
ui = f7Page(
title = "My app",
f7SingleLayout(
navbar = f7Navbar(title = "f7Notif"),
f7Block(f7Button(inputId = "goButton", "Go!"))
)
),
server = function(input, output, session) {
observeEvent(input$goButton, {
f7Notif(
text = "test",
icon = f7Icon("bolt_fill"),
title = "Notification",
subtitle = "A subtitle",
titleRightText = "now"
)
})
}
)
}
Run the code above in your browser using DataLab