-
Notifications
You must be signed in to change notification settings - Fork 12
/
Copy pathargonNavbar.Rd
100 lines (94 loc) · 2.28 KB
/
argonNavbar.Rd
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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/argonNavbar.R
\name{argonNavbar}
\alias{argonNavbar}
\title{Create a Boostrap 4 argon navbar}
\usage{
argonNavbar(
...,
href = "#",
src = NULL,
src_collapsed = NULL,
id,
headroom = TRUE
)
}
\arguments{
\item{...}{Slot for \link{argonNavMenu}.}
\item{href}{Link to another HTML page.}
\item{src}{Brand image path or url.}
\item{src_collapsed}{Brand image path or url on small devices. Background is white.}
\item{id}{Navbar toggle unique id.}
\item{headroom}{Whether to apply headroom.js effect to the header. TRUE by default.}
}
\description{
Build an argon navbar
}
\examples{
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"
)
)
)
}
}
\author{
David Granjon, \email{[email protected]}
}