Skip to content

Commit

Permalink
Merge pull request #142 from Appsilon/checkbox-ui-deprecated
Browse files Browse the repository at this point in the history
checkbox_ui deprecated warning
  • Loading branch information
dokato authored Dec 2, 2019
2 parents 60e2587 + 193ca09 commit 0782ab6
Show file tree
Hide file tree
Showing 3 changed files with 33 additions and 0 deletions.
1 change: 1 addition & 0 deletions NAMESPACE
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ export(check_proper_color)
export(check_semantic_theme)
export(checkbox_positions)
export(checkbox_types)
export(checkbox_ui)
export(create_modal)
export(date_input)
export(dropdown)
Expand Down
10 changes: 10 additions & 0 deletions R/checkbox.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,16 @@ js_for_toggle_input <- function(selector, input_id) {
}});")
}

#'
#' 'checkbox_ui' is deprecated. Use 'simple_checkbox' instead.
#'
#' @inherit simple_checkbox
#' @export
checkbox_ui <- function(id, label, type = "", is_marked = TRUE, style = NULL) {
.Deprecated("simple_checkbox")
simple_checkbox(id, label, type, is_marked, style)
}

#' Create Semantic UI multiple checkbox
#'
#' This creates a multiple checkbox using Semantic UI styles.
Expand Down
22 changes: 22 additions & 0 deletions man/checkbox_ui.Rd

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

0 comments on commit 0782ab6

Please sign in to comment.