Description Usage Arguments Author(s) Examples
Build an argon navbar
1 2 3 4 5 6 7 8 | argonNavbar(
...,
href = "#",
src = NULL,
src_collapsed = NULL,
id,
headroom = TRUE
)
|
... |
Slot for argonNavMenu. |
href |
Link to another HTML page. |
src |
Brand image path or url. |
src_collapsed |
Brand image path or url on small devices. Background is white. |
id |
Navbar toggle unique id. |
headroom |
Whether to apply headroom.js effect to the header. TRUE by default. |
David Granjon, dgranjon@ymail.com
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 | if(interactive()){
library(argonR)
argonNavbar(
id = "main-navbar",
src = "https://demos.creative-tim.com/argon-design-system/assets/img/brand/white.png",
# left menu
argonNavMenu(
argonDropdown(
name = "Components",
size = "lg",
argonDropdownItem(
name = "Getting Started",
description = "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla",
src = "test.html",
icon = "spaceship",
status = "primary"
),
argonDropdownItem(
name = "Foundation",
description = "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla",
src = "",
icon = "palette",
status = "warning"
),
argonDropdownItem(
name = "Components",
description = "BlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBlaBla",
src = "",
icon = "ui-04",
status = "success"
)
)
),
# right menu
argonNavMenu(
side = "right",
argonNavItem(
name = "facebook",
src = "https://www.facebook.com",
icon = "facebook-square",
tooltip = "Like us on Facebook"
),
argonNavItem(
name = "instagram",
src = "https://www.instagram.com",
icon = "instagram",
tooltip = "Follow us on Instagram"
),
argonNavItem(
name = "twitter",
src = "https://www.twitter.com",
icon = "twitter-square",
tooltip = "Follow us on Twitter"
),
argonNavItem(
name = "github",
src = "https://www.github.com",
icon = "github",
tooltip = "Star us on Github"
)
)
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.