Skip to content

Commit a8f2f97

Browse files
committed
should mention what reactR.reactShinyInput() does
1 parent 74e263a commit a8f2f97

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vignettes/intro_inputs.Rmd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ colorpickerInput <- function(inputId, default = "") {
208208
* `value`: The input's values over time, beginning with the `default` supplied from `reactR::createReactShinyInput()`.
209209
* `setValue`: A JavaScript function to call with the input's new value when one is created. This function is not user supplied, but rather an internal hook for informing Shiny about changes to the component's current state (i.e. value).
210210

211-
Consider the following intermediate component, `PickerInput`. Note how this intermediate component allows one to set the default `value` from R and also calls `setValue()` inside `onChangeComplete` in order to inform Shiny about new color values.
211+
Consider the following intermediate component, `PickerInput`. Note how this intermediate component allows one to set the default `value` from R and also calls `setValue()` inside `onChangeComplete` in order to inform Shiny about new color values. Finally, `reactR.reactShinyInput()` registers this intermediate component as a custom Shiny input binding named `colorpicker`.
212212

213213
```js
214214
import { reactShinyInput } from 'reactR';

0 commit comments

Comments
 (0)