# NOT RUN {
app$callback(
output('output-clientside', 'children'),
params=list(input('input', 'value')),
clientsideFunction(
namespace = 'my_clientside_library',
function_name = 'my_function'
)
)
# Passing JavaScript as a character string
app$callback(
output('output-clientside', 'children'),
params=list(input('input', 'value')),
"function (value) {
return 'Client says \"' + value + '\"';
}"
)
# }
Run the code above in your browser using DataLab