scout_action {scoutbaR}R Documentation

Creates a scout action

Description

Creates an item that can perform actions on the server side.

Usage

scout_action(id, label, description, closeOnClick = TRUE, ...)

Arguments

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.

Details

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.

Value

A list containing:


[Package scoutbaR version 0.2.0 Index]