# NOT RUN {
if (interactive()) {
library(shiny)
library(shinyMobile)
shinyApp(
ui = f7Page(
title = "My app",
f7SingleLayout(
navbar = f7Navbar(title = "f7ColorPicker"),
f7ColorPicker(
inputId = "mycolorpicker",
placeholder = "Some text here!",
label = "Select a color"
),
"The picker value is:",
textOutput("colorPickerVal")
)
),
server = function(input, output) {
output$colorPickerVal <- renderText(input$mycolorpicker)
}
)
}
# }
Run the code above in your browser using DataLab