View source: R/shiny-inputbindings.R
| registerInputBinding | R Documentation | 
Register customized input to enable support by compound input
registerInputBinding(
  fname,
  pkg,
  shiny_binding,
  update_function = NULL,
  quiet = FALSE
)
| fname | character, function name, such as  | 
| pkg | character, package name, like  | 
| shiny_binding | character, 'JavaScript' binding name.See examples | 
| update_function | character, update function such as  | 
| quiet | logical, whether to suppress warnings | 
a list of binding functions, one is 'JavaScript' object key in
Shiny.inputBindings, the other is 'shiny' update function in R end.
# register shiny textInput
registerInputBinding('textInput', 'shiny',
                     'shiny.textInput', 'shiny::updateTextInput')
# Register shiny actionLink
# In "Shiny.inputbindings", the binding name is "shiny.actionButtonInput",
# Shiny update function is "shiny::updateActionButton"
registerInputBinding('actionLink', 'shiny',
                     'shiny.actionButtonInput', 'shiny::updateActionButton')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.