diff --git a/DESCRIPTION b/DESCRIPTION index af7665b..e252fcf 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -12,7 +12,8 @@ Roxygen: list(markdown = TRUE) RoxygenNote: 7.2.3 Imports: shiny, - htmltools + htmltools, + jsonlite Suggests: testthat (>= 3.0.0) Config/testthat/edition: 3 diff --git a/R/wizard.R b/R/wizard.R index c7ede13..7fa50fe 100644 --- a/R/wizard.R +++ b/R/wizard.R @@ -9,6 +9,10 @@ #' @param orientation wizard orientation (horizontal or vertical) #' @param style wizard style (dots, tabs or progress) #' @param show_buttons show buttons or not (TRUE or FALSE) +#' @param id wizard id +#' @param options A list of options. See the documentation of +#' 'Wizard-JS' () for +#' possible options. #' @return wizard html #' @export wizard <- function( @@ -34,7 +38,7 @@ wizard <- function( # handle wizard-JS options - options <- modifyList( + options <- utils::modifyList( # default list list( "wz_ori" = orientation, diff --git a/man/wizard.Rd b/man/wizard.Rd index 0764a68..708ed87 100644 --- a/man/wizard.Rd +++ b/man/wizard.Rd @@ -9,7 +9,8 @@ wizard( orientation = c("horizontal"), style = c("progress"), show_buttons = c(TRUE), - id = NULL + id = NULL, + options = list() ) } \arguments{ @@ -22,6 +23,10 @@ wizard( \item{show_buttons}{show buttons or not (TRUE or FALSE)} \item{id}{wizard id} + +\item{options}{A list of options. See the documentation of +'Wizard-JS' () for +possible options.} } \value{ wizard html