Learn R Programming

linkeR (version 0.1.3)

setup_plotly_observers: Setup Plotly Observers

Description

Sets up reactive observers for a Plotly component to handle user interactions.

Usage

setup_plotly_observers(
  component_id,
  session,
  components,
  shared_state,
  on_selection_change,
  registry = NULL
)

Value

NULL. This function is called for its side effects of setting up observers.

Arguments

component_id

Character string. Unique identifier for the Plotly component.

session

Shiny session object. The current Shiny session for reactive context.

components

List. Collection of UI components in the application.

shared_state

Reactive values object. Shared state container for cross-component communication.

on_selection_change

Function. Callback function to execute when plot selection changes.

registry

List or NULL. Optional registry for component management. Defaults to NULL.