Skip to content

Commit

Permalink
Will fix #306
Browse files Browse the repository at this point in the history
  • Loading branch information
DivadNojnarg committed Oct 1, 2022
1 parent d5c7c5f commit aa3fc85
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 14 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ Suggests:
DT,
thematic (>= 0.1.2)
Encoding: UTF-8
RoxygenNote: 7.1.2
RoxygenNote: 7.2.1
VignetteBuilder: knitr
Collate:
'feedbacks.R'
Expand Down
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@
[pagination](https://getbootstrap.com/docs/4.0/components/pagination/).

## Bug fixes
- Fix #306: Dynamic menuSubItems with apply() adds some extra text. Added __.list__
param to `menuItem()` to programatically pass `menuSubItem()` as list.
- Fix #297: `tabsetPanel()` renders below the list of `tabPanels` when vertical = TRUE.
Changed layout to `fluidRow`. Thanks @lucas-alcantara for reporting.
- Fix #296: Documentation issue for `valueBox()` and `infoBox()` in the render function section.
Expand Down
7 changes: 5 additions & 2 deletions R/dashboardSidebar.R
Original file line number Diff line number Diff line change
Expand Up @@ -311,6 +311,9 @@ findSidebarItem <- function(items, regex) {
#' @param startExpanded Whether to expand the \link{menuItem} at start.
#' @param condition When using \link{menuItem} with \link[shiny]{conditionalPanel},
#' write the condition here (see \url{https://github.com/RinteRface/bs4Dash/issues/35}).
#' @param .list An optional list containing items to put in the menu Same as the
#' \code{...} arguments, but in list format. This can be useful when working
#' with programmatically generated items.
#'
#' @rdname dashboardSidebar
#'
Expand Down Expand Up @@ -360,8 +363,8 @@ bs4SidebarMenuItem <- function(text, ..., icon = NULL, badgeLabel = NULL, badgeC
tabName = NULL, href = NULL,
newTab = TRUE, selected = NULL,
expandedName = as.character(gsub("[[:space:]]", "", text)),
startExpanded = FALSE, condition = NULL) {
subItems <- list(...)
startExpanded = FALSE, condition = NULL, .list = NULL) {
subItems <- c(list(...), .list)

if (!is.null(icon)) {
tagAssert(icon, type = "i")
Expand Down
2 changes: 1 addition & 1 deletion man/appButton.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions man/box.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 4 additions & 2 deletions man/dashboardSidebar.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/dashboardUser.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/infoBox.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions man/renderMenu.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/valueBox.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit aa3fc85

Please sign in to comment.