Description Usage Arguments See Also
View source: R/turbo-listener.R
Script that attaches a listener to the Turbo Event
1 2 3 4 5 6 7 8 | turbo_listener(
event = c("before-visit", "before-render", "before-fetch-request", "click", "visit",
"submit-start", "before-fetch_response", "submit-end", "before-cache",
"before-render", "before-stream-render", "render", "load", "frame-render",
"frame-load"),
code,
...
)
|
event |
(str) event to listen for:
|
code |
(js) JS code inside the listener (exclude function parts). |
... |
(arg) passed to |
Other Turbo:
turbo_assets()
,
turbo_frame()
,
turbo_link()
,
turbo_modifiers
,
turbo_stream()
,
turbo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.