Skip to content

Commit

Permalink
chore: update docs
Browse files Browse the repository at this point in the history
  • Loading branch information
vedhav committed Oct 10, 2024
1 parent d8e3548 commit 6468f33
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
14 changes: 10 additions & 4 deletions R/toggleable_slider.R
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
#' @param step_numeric `numeric or integer` step for numeric input fields
#' @param width `numeric` width of slider or of each numeric field
#'
#' @return Shiny HTML UI
#' @keywords internal
#'
#' @examples
#' value <- c(20.3, 81.5) # dichotomous slider
#' # value <- c(50.1) # normal slider
Expand Down Expand Up @@ -59,6 +56,14 @@
#' if (interactive()) {
#' shinyApp(ui, server)
#' }
#' @name toggle_sidebar
#' @rdname toggle_sidebar
#' @keywords internal
#' @return `NULL`.
NULL


#' @rdname toggle_sidebar
toggle_slider_ui <- function(id,
label,
min,
Expand Down Expand Up @@ -130,10 +135,11 @@ toggle_slider_ui <- function(id,
)
}

#' @param is_dichotomous_slider `logical` whether it is a dichotomous slider or normal slider
#' @param step_slider `numeric or integer` step for slider
#' @param ... additional parameters to pass to `sliderInput`
#' @keywords internal
# is_dichotomous_slider `logical` whether it is a dichotomous slider or normal slider
#' @rdname toggle_slider
toggle_slider_server <- function(id, is_dichotomous_slider = TRUE, step_slider = NULL, ...) {
moduleServer(id, function(input, output, session) {
checkmate::assert_flag(is_dichotomous_slider)
Expand Down
5 changes: 3 additions & 2 deletions man/toggle_slider_ui.Rd → man/toggle_sidebar.Rd

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

0 comments on commit 6468f33

Please sign in to comment.