Sets up reactive observers for a Plotly component to handle user interactions.
setup_plotly_observers(
component_id,
session,
components,
shared_state,
on_selection_change,
registry = NULL
)NULL. This function is called for its side effects of setting up observers.
Character string. Unique identifier for the Plotly component.
Shiny session object. The current Shiny session for reactive context.
List. Collection of UI components in the application.
Reactive values object. Shared state container for cross-component communication.
Function. Callback function to execute when plot selection changes.
List or NULL. Optional registry for component management. Defaults to NULL.