-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shiny_list_to_li and shiny_static_navbar
- Loading branch information
Showing
3 changed files
with
101 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
% Generated by roxygen2 (4.1.0): do not edit by hand | ||
% Please edit documentation in R/shiny_utils.R | ||
\name{shiny_list_to_li} | ||
\alias{shiny_list_to_li} | ||
\title{Take list with name and href element and return | ||
<li><a href='href'>name</a></li>} | ||
\usage{ | ||
shiny_list_to_li(navbar_tab, this_href) | ||
} | ||
\arguments{ | ||
\item{navbar_tab}{list} | ||
|
||
\item{this_href}{character} | ||
} | ||
\value{ | ||
shiny::tags$li | ||
} | ||
\description{ | ||
Take list with name and href element and return | ||
<li><a href='href'>name</a></li> | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
% Generated by roxygen2 (4.1.0): do not edit by hand | ||
% Please edit documentation in R/shiny_utils.R | ||
\name{shiny_static_navbar} | ||
\alias{shiny_static_navbar} | ||
\title{Create "static" boostrap navbar} | ||
\usage{ | ||
shiny_static_navbar(navbar_brand, navbar_tabs, this_href = "/") | ||
} | ||
\arguments{ | ||
\item{navbar_brand}{character page brand} | ||
|
||
\item{navbar_tabs}{list of lists each containing name and href} | ||
|
||
\item{this_href}{character current url} | ||
} | ||
\value{ | ||
shiny::tags$nav | ||
} | ||
\description{ | ||
Create "static" boostrap navbar | ||
} | ||
|