Fray Electron
    Preparing search index...

    Variable consoleScrollConst

    consoleScroll: {
        finish(request: ConsoleScrollRequest): void;
        snapshot(): ConsoleScrollRequest | null;
        subscribe(listener: Listener): () => void;
        toBottom(): void;
        toEntry(uid: string, options?: { flash?: boolean }): void;
        toNotification(
            target: NotificationTarget,
            options?: { flash?: boolean },
        ): void;
        toTop(): void;
    } = ...

    Console scrolling API. Requests are kept until a visible Console handles them, so they work even when the Console panel is only just being revealed. Nothing here waits for the Console.

    Type Declaration

    • finish: function
    • snapshot: function
    • subscribe: function
      • Subscribes to request changes.

        Parameters

        • listener: Listener

          Called after each change.

        Returns () => void

        Unsubscribe function.

    • toBottom: function
      • Scrolls to the newest entry.

        Returns void

        Queues a request for the Console.

    • toEntry: function
      • Scrolls to an entry by uid.

        Parameters

        • uid: string

          Entry uid.

        • options: { flash?: boolean } = {}

          flash: play the arrival flash when the scroll ends (default true).

        Returns void

        Queues a request for the Console.

    • toNotification: function
      • Scrolls to the newest Console entry matching a shown notification, waiting briefly for it to arrive.

        Parameters

        • target: NotificationTarget

          The notification's content.

        • options: { flash?: boolean } = {}

          flash: play the arrival flash when the scroll ends (default true).

        Returns void

        Queues a request for the Console.

    • toTop: function
      • Scrolls to the oldest loaded entry.

        Returns void

        Queues a request for the Console.