SheetXL - v1.0.7
    Preparing search index...

    Variable useRangeListenerConst

    useRangeListener: (
        model: RangeContainer | null | undefined,
        address: ICellRange.Address | null | undefined,
        listener: ICellRange.Listener,
        options?: useRangeListenerOptions,
    ) => void

    Listen to a range of model for as long as the component is mounted.

    Type Declaration

      • (
            model: RangeContainer | null | undefined,
            address: ICellRange.Address | null | undefined,
            listener: ICellRange.Listener,
            options?: useRangeListenerOptions,
        ): void
      • Parameters

        • model: RangeContainer | null | undefined

          What the range is read from: a workbook or a sheet.

        • address: ICellRange.Address | null | undefined

          The range to listen to. Nothing is listened to while it is null.

        • listener: ICellRange.Listener

          Called with each ICellRange.Event. The latest render's listener is the one called, so it may close over state without re-subscribing.

        • Optionaloptions: useRangeListenerOptions

          Which events to hear and how the range follows inserts and deletes (ICellRange.ListenerOptions). Read once per subscription.

        Returns void

    The subscription is renewed when model or address changes. Nothing is delivered for that renewal: the listener only hears what the range itself reports.