f7Block
creates a block container.
f7BlockTitle
creates a title for f7Block.
f7BlockHeader
creates a header content for f7Block.
f7BlockFooter creates a footer content for f7Block.
Usage
f7Block(
...,
hairlines = deprecated(),
strong = FALSE,
inset = FALSE,
tablet = FALSE,
outline = FALSE
)
f7BlockTitle(title, size = NULL)
f7BlockHeader(text)
f7BlockFooter(text)
Arguments
- ...
Block content. Also for f7BlockHeader and f7BlockFooter.
- hairlines
- strong
Add white background so that text is highlighted. FALSE by default.
- inset
Whether to set block inset. FALSE by default. Works only if strong is TRUE.
- tablet
Whether to make block inset only on large screens. FALSE by default.
- outline
Block border. Default to FALSE.
- title
Block title.
- size
Block title size. NULL by default or "medium", "large".
- text
Any text.
Author
David Granjon, dgranjon@ymail.com
Examples
if (interactive()) {
library(shiny)
library(shinyMobile)
shinyApp(
ui = f7Page(
title = "Blocks",
f7SingleLayout(
navbar = f7Navbar(title = "f7Block"),
f7BlockTitle(title = "A large title", size = "large"),
f7Block(
f7BlockHeader(text = "Header"),
"Here comes paragraph within content block.
Donec et nulla auctor massa pharetra
adipiscing ut sit amet sem. Suspendisse
molestie velit vitae mattis tincidunt.
Ut sit amet quam mollis, vulputate
turpis vel, sagittis felis.",
f7BlockFooter(text = "Footer")
),
f7BlockTitle(title = "A medium title", size = "medium"),
f7Block(
strong = TRUE,
outline = TRUE,
f7BlockHeader(text = "Header"),
"Here comes paragraph within content block.
Donec et nulla auctor massa pharetra
adipiscing ut sit amet sem. Suspendisse
molestie velit vitae mattis tincidunt.
Ut sit amet quam mollis, vulputate
turpis vel, sagittis felis.",
f7BlockFooter(text = "Footer")
),
f7BlockTitle(title = "A normal title", size = NULL),
f7Block(
inset = TRUE,
strong = TRUE,
f7BlockHeader(text = "Header"),
"Here comes paragraph within content block.
Donec et nulla auctor massa pharetra
adipiscing ut sit amet sem. Suspendisse
molestie velit vitae mattis tincidunt.
Ut sit amet quam mollis, vulputate
turpis vel, sagittis felis.",
f7BlockFooter(text = "Footer")
),
f7Block(
inset = TRUE,
tablet = TRUE,
strong = TRUE,
f7BlockHeader(text = "Header"),
"Here comes paragraph within content block.
Donec et nulla auctor massa pharetra
adipiscing ut sit amet sem. Suspendisse
molestie velit vitae mattis tincidunt.
Ut sit amet quam mollis, vulputate
turpis vel, sagittis felis.",
f7BlockFooter(text = "Footer")
),
f7Block(
inset = TRUE,
strong = TRUE,
outline = TRUE,
f7BlockHeader(text = "Header"),
"Here comes paragraph within content block.
Donec et nulla auctor massa pharetra
adipiscing ut sit amet sem. Suspendisse
molestie velit vitae mattis tincidunt.
Ut sit amet quam mollis, vulputate
turpis vel, sagittis felis.",
f7BlockFooter(text = "Footer")
)
)
),
server = function(input, output) {}
)
}