| @@ -317,3 +317,7 @@ your job is to tell Shiny a few key things: | |||
| The input binding JavaScript for `checkboxInput()` is available | |||
| in the [Shiny GitHub repository][checkboxInput-shiny-input-binding]. | |||
| Read through it and discuss what each method does. | |||
| ## Setup our input binding | |||
| Now it's time to setup our input binding. Replace `FIXME` with `el.value`. | |||
| @@ -16,8 +16,7 @@ $.extend(typingSpeed, { | |||
| // your input. In this function, find or construct the value that will be | |||
| // returned to Shiny. The ID of `el` is used for the inputId. | |||
| // e.g: return el.value | |||
| return 'FIXME'; | |||
| return el.value; | |||
| }, | |||
| setValue: function(el, value) { | |||
| // This method is used for restoring the bookmarked state of your input | |||