View source: R/js-handler-internal.R
vw_handler | R Documentation |
You will likely call one of the specific handler-constructors:
vw_handler_signal()
, vw_handler_event()
, in conjunction with
vw_handler_add_effect()
.
vw_handler(args, body_value, body_effect)
args |
|
body_value |
|
body_effect |
|
The handler has three parts:
args
arguments to the handler
body_value
the body of a function of the args
, returns a value
body_effect
the body of a function of the value, x
, performs a
side-effect
object with S3 class vw_handler
vw_handler_signal()
, vw_handler_event()
,
vw_handler_add_effect()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.