Skip to content

Commit

Permalink
Merge pull request #31 from chlebowa/30_argument_check@master
Browse files Browse the repository at this point in the history
30 argument check@master
  • Loading branch information
pvictor committed Feb 26, 2024
2 parents 9e3dcf6 + 2ff2723 commit b730558
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion R/block.R
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
#' Block / unblock an UI element
#'
#' @param id Id of the element to block, for exemple an `outputId`.
#' @param text Text displayed below the blocking indicator.
#' @param text Text displayed below the blocking indicator. Must be a single character string.
#' @param type Type of blocking indicator.
#' @param ... Other configuration option, see [online documentation](https://notiflix.github.io/documentation#DocsBlock).
#' @param selector Custom CSS selector, if used `id` is ignored.
Expand All @@ -20,6 +20,7 @@ block <- function(id,
...,
selector = NULL,
session = shiny::getDefaultReactiveDomain()) {
if (!(is.character(text) && length(text) == 1L)) stop("\"text\" must be a character of length 1\"")
type <- match.arg(type)
insertUI(
selector = "html",
Expand Down
2 changes: 1 addition & 1 deletion man/block.Rd

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

0 comments on commit b730558

Please sign in to comment.