Skip to content

Commit 5f97dfa

Browse files
committed
createReactInput => createReactShinyInput
1 parent 2d36b8f commit 5f97dfa

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

NAMESPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ S3method("[[<-",react_component_builder)
77
export(React)
88
export(babel_transform)
99
export(component)
10-
export(createReactInput)
10+
export(createReactShinyInput)
1111
export(html_dependency_corejs)
1212
export(html_dependency_react)
1313
export(html_dependency_reacttools)

R/reacttools.R

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,8 +109,8 @@ reactMarkup <- function(tag) {
109109
#'
110110
#' @examples
111111
#' myInput <- function(inputId, default = "") {
112-
#' # The value of createReactInput should be returned from input constructor functions.
113-
#' createReactInput(
112+
#' # The value of createReactShinyInput should be returned from input constructor functions.
113+
#' createReactShinyInput(
114114
#' inputId,
115115
#' "myinput",
116116
#' # At least one htmlDependency must be provided -- the JavaScript implementation of the input.
@@ -124,7 +124,7 @@ reactMarkup <- function(tag) {
124124
#' default
125125
#' )
126126
#' }
127-
createReactInput <- function(inputId,
127+
createReactShinyInput <- function(inputId,
128128
class,
129129
dependencies,
130130
default = NULL,

inst/templates/input_r.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
#' <Add Description>
44
#'
55
#' @importFrom shiny restoreInput
6-
#' @importFrom reactR createReactInput
6+
#' @importFrom reactR createReactShinyInput
77
#' @importFrom htmltools htmlDependency tags
88
#'
99
#' @export
1010
${name}Input <- function(inputId, default = "") {
11-
createReactInput(
11+
createReactShinyInput(
1212
inputId,
1313
"${name}",
1414
htmlDependency(

man/createReactInput.Rd renamed to man/createReactShinyInput.Rd

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

vignettes/intro_inputs.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ props:
189189
* `setValue`: A function to call with the input's new value when one is created
190190

191191
The `configuration` and `value` props are initially populated on the R side, as
192-
arguments to the `createReactInput` function inside the input's constructor
192+
arguments to the `createReactShinyInput` function inside the input's constructor
193193
function. In the case of our newly-scaffolded input, that happens in
194194
`R/colorpicker.R`.
195195

0 commit comments

Comments
 (0)