| back_top_button | R Documentation |
This function is a template function that should be called
in 'HTML' templates before closing the "</body>" tag.
When open_drawer = TRUE, an additional button is rendered
that fires a "button.click" shidashi-event with
type = "open_drawer".
Module server code (or chatbot_server) can observe
this event via get_event and call
drawer_open / shiny::renderUI to fill the
drawer with content.
back_top_button(
icon = "chevron-up",
title = "Jump to",
open_drawer = TRUE,
drawer_icon = "ellipsis"
)
icon |
the icon for back-to-top button |
title |
the expanded menu title |
open_drawer |
logical; whether to include a drawer-toggle
button. Defaults to |
drawer_icon |
the icon for the drawer-toggle button;
defaults to |
'HTML' tags
back_top_button()
back_top_button("rocket")
back_top_button("rocket", drawer_icon = "robot")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.