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