scout_action | R Documentation |
Creates an item that can perform actions on the server side.
scout_action(id, label, description, closeOnClick = TRUE, ...)
id |
Unique id. |
label |
Action label. |
description |
Action description. |
closeOnClick |
Whether to close the scoutbar whenever this action is clicked. Default to TRUE. |
... |
Other options. See https://www.scoutbar.co/docs/actions. |
This function is meant to be embeded directly within scoutbar or via a more structured way within scout_page or scout_section. It serves as a bridge between R and JavaScript to communicate with the Scoutbar React API, so you are not expected to call it on its own.
A list containing:
children: a sublist where are passed the options.
class: a character vector to identify the action on the JavaScript side. You are not expected to modify it as it will break the JavaScript binding.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.