page_navbar: Add a navbar (header) section to a website

View source: R/page_navbar.R

page_navbarR Documentation

Add a navbar (header) section to a website

Description

Adds a bar at the top of the page, potentially with a title and logo image.

Usage

page_navbar(..., title = "", logo = "", breakpoint = "md",
  logo.height = "24px", logo.width = "24px")

Arguments

...

Content to add to the navbar. Can be lists specifying submenus and their items. Each list can have entries for "name" (the navbar button text), "title" (the menu title), "foot" (the menu footer), "id" (the ID of the menu element), "class" (class of the menu element), "placement" (start, top, end, or bottom), "backdrop" (logical, where FALSE disables the backdrop and makes the menu shift main content), and items (a list of menu items).

title

A title to appear in the header.

logo

URL of an image to appear in the header.

breakpoint

Bootstrap breakpoint code specifying the width at which the menu collapses; default is "md".

logo.height

Character or number setting the height of the logo.

logo.width

Character or number setting the width of the logo.

Value

A character vector of the content to be added.

Examples

page_navbar(
  title = "Site Name",
  list(
    name = "menu",
    title = "Menu",
    items = list(input_select("menu select", c("a", "b")))
  )
)

uva-bi-sdad/community documentation built on Oct. 12, 2023, 1:18 p.m.