|
|
|
|
|
|
|
|
// your input. In this function, find or construct the value that will be |
|
|
// 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. |
|
|
// returned to Shiny. The ID of `el` is used for the inputId. |
|
|
|
|
|
|
|
|
return el.value.length; |
|
|
|
|
|
|
|
|
return el.value.split(' ').length; |
|
|
}, |
|
|
}, |
|
|
setValue: function(el, value) { |
|
|
setValue: function(el, value) { |
|
|
// This method is used for restoring the bookmarked state of your input |
|
|
// This method is used for restoring the bookmarked state of your input |