# NOT RUN {
if (interactive()) {
library(shiny)
library(shinyMobile)
shiny::shinyApp(
ui = f7Page(
title = "My app",
f7TabLayout(
navbar = f7Navbar(
title = "f7ListIndex",
hairline = FALSE,
shadow = TRUE
),
f7Tabs(
f7Tab(
tabName = "List 1",
f7ListIndex(
id = "listIndex1",
lapply(seq_along(LETTERS), function(i) {
f7ListGroup(
title = LETTERS[i],
lapply(1:3, function(j) {
f7ListIndexItem(letters[j])
})
)
})
)
),
f7Tab(
tabName = "List 2",
f7ListIndex(
id = "listIndex2",
lapply(seq_along(LETTERS), function(i) {
f7ListGroup(
title = LETTERS[i],
lapply(1:3, function(j) {
f7ListIndexItem(letters[j])
})
)
})
)
)
)
)
),
server = function(input, output) {}
)
}
# }
Run the code above in your browser using DataLab