Skip to contents

Encapsulates sidebar controls for ticker selection, date range, rolling-vol window, and report download. Uses R6 for object-oriented Shiny module design.

Methods


ModInputs$new()

Initialize a new ModInputs instance

Usage

ModInputs$new(id = "inputs")

Arguments

id

Character. Module namespace id.


ModInputs$ui()

Build sidebar UI

Usage

ModInputs$ui(...)

Arguments

...

Additional UI elements appended to the end of the sidebar (e.g., ModDownload$ui())

Returns

A bslib::sidebar() tag object


ModInputs$server()

Initialize server logic

Usage

ModInputs$server()

Returns

Reactive list with elements: tickers, from, to, vol_window, fetch


ModInputs$clone()

The objects of this class are cloneable with this method.

Usage

ModInputs$clone(deep = FALSE)

Arguments

deep

Whether to make a deep clone.

Examples

if (FALSE) { # \dontrun{
# In app_ui():
inputs <- ModInputs$new(id = "inputs")
inputs$ui()

# In app_server():
inputs <- ModInputs$new(id = "inputs")
inputs_r <- inputs$server()
} # }