Learn R Programming

shinyBS (version 0.20)

bsNavLink: Twitter Boostrap Navbar Links

Description

Functions to create Twitter Bootstrap Navbar Links

Usage

bsNavLink(inputId, label, href = "#")

Arguments

inputId
The id of the input object.
label
The label that will appear on the link/button.
href
Optional web address for the link

Details

Works as an actionButton but can also be used as a regular web link if href is provided.

References

http://getbootstrap.com/2.3.2/components.html{Navbars for Twitter Bootstrap 2.3.2}

Examples

Run this code
## In ui.R
  ## Create a navLink that acts as an action button:
  bsNavLink(inputId = "link1", label="Run Example")
  ## Create a navLink that acts as a link:
  bsNavLink(inputId = "link2", label="Google", href="http://www.google.com")

Run the code above in your browser using DataLab