f7Toolbar {shinyMobile} | R Documentation |
Framework7 Toolbar
Description
f7Toolbar
is a layout element located at the bottom or top. It is
internally used by f7Tabs and can be used in the toolbar slot of
f7Page.
Usage
f7Toolbar(
...,
position = c("bottom", "top"),
hairline = deprecated(),
shadow = deprecated(),
icons = FALSE,
scrollable = FALSE
)
Arguments
... |
Slot for f7Link or any other element. |
position |
Tabs position: "top" or "bottom". Or use different positions for iOS, MD themes by using: "top-ios", "top-md", "bottom-ios", or "bottom-md". |
hairline |
|
shadow |
|
icons |
Whether to use icons instead of text. Either ios or md icons. |
scrollable |
Whether to allow scrolling. FALSE by default. |
Author(s)
David Granjon, dgranjon@ymail.com
Examples
library(shiny)
library(shinyMobile)
app <- shinyApp(
ui = f7Page(
title = "Toolbar",
toolbar = f7Toolbar(
icons = TRUE,
f7Link(
label = "Link 1",
href = "https://www.google.com",
icon = f7Icon("link_circle_fill")
),
f7Link(
label = "Link 2",
href = "https://maps.google.com",
icon = f7Icon("location_circle_fill")
)
)
),
server = function(input, output, session) {
}
)
if (interactive() || identical(Sys.getenv("TESTTHAT"), "true")) app
[Package shinyMobile version 2.0.0 Index]