chmBindFunction | R Documentation |
Create a new JS function by binding values to extra parameters of an existing JS function.
chmBindFunction(name, fn, bindings) ## S4 method for signature 'character,ngchmJS,list' chmBindFunction(name, fn, bindings) ## S4 method for signature 'character,character,list' chmBindFunction(name, fn, bindings)
name |
The name to give the new JS function. |
fn |
An existing JS function with at least one extra parameter. |
bindings |
A list containing at least one parameter binding. Each list element binds one parameter, starting from the first unbound parameter, and the name of each list element must match the name of the corresponding parameter. |
chmNewFunction()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.