scout_section: Creates a scout section

View source: R/scoutbar.R

scout_sectionR Documentation

Creates a scout section

Description

Sort scout_action on the same view.

Usage

scout_section(label, ..., .list = NULL)

Arguments

label

Section label.

...

Expect scout_action.

.list

To programmatically pass a list of scout_action, with lapply for instance.

Details

Whenever many scout_action share a similar topic, you may use this function to sort them in the UI and offer a better user experience. You can combine it with scout_page.

Value

A list containing:

  • children: a sublist where are passed the scout_action.

  • label: The section label.

  • class: a character vector to identify the section on the JavaScript side. You are not expected to modify it as it will break the JavaScript binding.


scoutbaR documentation built on April 3, 2025, 8:54 p.m.