registerInputBinding: Register customized input to enable support by compound input

Description Usage Arguments Value Examples

View source: R/shiny-inputbindings.R

Description

Register customized input to enable support by compound input

Usage

1
registerInputBinding(fname, pkg, shiny_binding, update_function = NULL)

Arguments

fname

character, function name, such as "textInput"

pkg

character, package name, like "shiny"

shiny_binding

character, 'JavaScript' binding name.See examples

update_function

character, update function such as "shiny::textInput"

Value

a list of binding functions, one is 'JavaScript' object key in Shiny.inputBindings, the other is 'shiny' update function in R end.

Examples

1
2
3
4
5
6
7
8
9
# 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')

dipsaus documentation built on Sept. 6, 2021, 5:08 p.m.