View source: R/shiny-inputbindings.R
getInputBinding | R Documentation |
Obtain registered input bindings
getInputBinding(fname, pkg = NULL, envir = parent.frame())
fname |
input function name, character or quoted expression
such as |
pkg |
(optional), name of package |
envir |
environment to evaluate |
a list containing: 1. 'JavaScript' input binding name; 2. 'R' updating function name
library(dipsaus)
# Most recommended usage
getInputBinding('compoundInput2', pkg = 'dipsaus')
# Other usages
getInputBinding('shiny::textInput')
getInputBinding(shiny::textInput)
getInputBinding(compoundInput2, pkg = 'dipsaus')
# Bad usage, raise errors in some cases
## Not run:
## You need to library(shiny), or set envir=asNamespace('shiny'), or pkg='shiny'
getInputBinding('textInput')
getInputBinding(textInput) # also fails
## Always fails
getInputBinding('dipsaus::compoundInput2', pkg = 'dipsaus')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.