MAIDR JavaScript API
    Preparing search index...
    • Follow a change of selection in the viz with MAIDR's cursor.

      The marks the selection now covers are fetched and resolved to the position they were read from (positionOfMarks). An event that answers a selection or clear this bridge issued is consumed as an echo and changes nothing. Anything else is a user's doing, and the worksheet is no longer counted as one MAIDR holds a selection in -- the click replaced it. A position is handed to navigate; no position (nothing selected, or marks no position names exactly) withdraws a target the chart may still be holding, since it no longer describes what is selected.

      Parameters

      • bridge: SelectionBridge

        The selection bridge of the mounted read.

      • detail: TableauMarksSelectedEvent

        The event's payload.

      • navigate: (target: NavigationTarget | null) => boolean

        Moves the chart's cursor, or keeps the target for the next focus-in; null withdraws a kept target. Returns whether the chart accepted it.

      Returns Promise<MarkSelectionOutcome>

      What was done with the event. Never rejects: a marks fetch that fails is logged and read as an event that resolved to nothing an echo.