add_meta: Add <meta> tags to a Dash app

Description Usage Arguments Examples

View source: R/wrappers.R

Description

Add <meta> tags to a Dash app

Usage

1
add_meta(app, meta)

Arguments

app

A dash application created with dash_app().

meta

A single meta tag or a list of meta tags. Each meta tag is a named list with two elements representing a meta tag. See examples below.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
app <- dash_app()

# Add a single meta tag
app %>% add_meta(list(name = "description", content = "My App"))

# Add multiple meta tags
app %>% add_meta(list(
  list(name = "keywords", content = "dash, analysis, graphs"),
  list(name = "viewport", content = "width=device-width, initial-scale=1.0")
))

dash documentation built on Nov. 7, 2021, 9:06 a.m.