Flarum (v2.0.0-beta.3)
    Preparing search index...
    Index

    Constructors

    Properties

    animateScroll: boolean = false
    description: string = ''

    The description to render on the scrubber.

    discussion: Discussion

    The discussion to display the post stream for.

    forceUpdateScrubber: boolean = false

    When the page is scrolled, goToIndex is called, or the page is loaded, various listeners result in the scrubber being updated with a new position and values. However, if goToNumber is called, the scrubber will not be updated. Accordingly, we add logic to the scrubber's onupdate to update itself, but only when needed, as indicated by this property.

    index: number = 0
    loadNext: () => void
    loadPageTimeouts: Record<number, NodeJS.Timeout> = {}
    loadPrevious: () => void
    loadPromise: Promise<void> | null = null
    needsScroll: boolean = false
    number: number = 1
    pagesLoading: number = 0
    paused: boolean = false

    Whether or not the infinite-scrolling auto-load functionality is disabled.

    targetPost: { number: number } | { index: number; reply?: boolean } | null = null
    visible: number = 1

    The number of posts that are currently visible in the viewport.

    visibleEnd: number = 0
    visibleStart: number = 0
    loadCount: number = 20

    The number of posts to load per page.

    Methods