nav_elem: Generate a nav element

Description Usage Arguments Value Examples

Description

Generate a html element suitable for a nav-list.

Usage

1
  nav_elem(title, href, active = FALSE)

Arguments

title

name of the nav element

href

link to the element

active

should the element be shown as active?

Value

html code with the nav element

Examples

1
2
3
4
5
el1 <- nav_elem("About", "/about.html", active=FALSE)
el2 <- nav_elem("Index", "/index.html", active=TRUE)

cat(as.character(el1))
cat(as.character(el2))

benjaminschlegel/lsmaps documentation built on May 12, 2019, 11:55 a.m.