File: nav_prepend.Rd

package info (click to toggle)
r-cran-bslib 0.4.2%2Bdfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,332 kB
  • sloc: javascript: 10,075; makefile: 30; sh: 23
file content (42 lines) | stat: -rw-r--r-- 1,289 bytes parent folder | download
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
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/nav-update.R
\name{nav_prepend}
\alias{nav_prepend}
\alias{nav_append}
\title{Append or prepend nav item to a dropdown menu}
\usage{
nav_prepend(
  id,
  nav,
  menu_title,
  select = FALSE,
  session = getDefaultReactiveDomain()
)

nav_append(
  id,
  nav,
  menu_title,
  select = FALSE,
  session = getDefaultReactiveDomain()
)
}
\arguments{
\item{id}{a character string used to identify the nav container.}

\item{nav}{a \code{\link[=nav]{nav()}} item.}

\item{menu_title}{The title of a \code{\link[=nav_menu]{nav_menu()}}.}

\item{select}{Should \code{nav} be selected upon being inserted?}

\item{session}{a shiny session object (the default should almost always be used).}
}
\description{
Exported for use by \code{\link[shiny:insertTab]{shiny::prependTab()}}/\code{\link[shiny:insertTab]{shiny::appendTab()}}. These
functions have been superseded by \code{\link[=nav_insert]{nav_insert()}} (i.e.,
\code{\link[shiny:insertTab]{shiny::insertTab()}}), since it can do everything these functions do (i.e.,
add a \code{\link[=nav]{nav()}} to the start or end of a \code{\link[=nav_menu]{nav_menu()}}) and more (i.e., insert a
\code{\link[=nav]{nav()}} anywhere inside a nav container).
}
\keyword{internal}