Learn R Programming

dash (version 0.9.4)

add_meta: Add <meta> tags to a Dash app

Description

Add <meta> tags to a Dash app

Usage

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

Run this code
# NOT RUN {
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")
))
# }

Run the code above in your browser using DataLab