ReporteRs (version 0.8.1)

addBootstrapMenu: add a BootstrapMenu into a bsdoc object.

Description

add a BootstrapMenu into a bsdoc object.

Usage

addBootstrapMenu(doc, bsmenu)

Arguments

doc

a bsdoc object.

bsmenu

the BootstrapMenu to add into the bsdoc.

Value

an object of class BootstrapMenu.

See Also

bsdoc, BootstrapMenu

Examples

Run this code
# NOT RUN {
#START_TAG_TEST
doc = bsdoc( title = "my document" )

mymenu = BootstrapMenu( title = "my title")

mydd = DropDownMenu( label = "Mon menu" )
mydd = addLinkItem( mydd, label = "GitHub", "http://github.com/")
mydd = addLinkItem( mydd, separator.after = TRUE)
mydd = addLinkItem( mydd, label = "Wikipedia", "http://www.wikipedia.fr")

mymenu = addLinkItem( mymenu, 
  label = "ReporteRs", "http://github.com/davidgohel/ReporteRs")
mymenu = addLinkItem( mymenu, dd = mydd )

doc = addBootstrapMenu( doc, mymenu )

pages = writeDoc( doc, file = "addBoostrapMenu_example/example.html")
#STOP_TAG_TEST
# }

Run the code above in your browser using DataCamp Workspace