Description Usage Arguments See Also
Turbo Frames allow predefined parts of a page to be updated on request. Any links and forms inside a frame are captured, and the frame contents automatically updated after receiving a response. Regardless of whether the server provides a full document, or just a fragment containing an updated version of the requested frame, only that particular frame will be extracted from the response to replace the existing content.
1 2 3 4 5 6 7 8 9 10 | turbo_frame(
id,
...,
src = NULL,
target = NULL,
loading = c("eager", "lazy"),
disabled = FALSE,
autoscroll = c("start", "end", "center", "nearest"),
env = parent.frame()
)
|
id |
(str) unique identifier |
... |
(tag) content of the element |
src |
(str) path for lazy loading of the content |
target |
(str) target of any links clicked in this:
|
loading |
(str) defines loading behavior
|
disabled |
(flg) navigation will not trigger if present |
autoscroll |
(str) whether to scroll to that area when it's loaded. |
env |
(env) calling environment |
Other Turbo:
turbo_assets()
,
turbo_link()
,
turbo_listener()
,
turbo_modifiers
,
turbo_stream()
,
turbo
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.