Options
All
  • Public
  • Public/Protected
  • All
Menu

Class DiscussionListState<P>

Type parameters

Hierarchy

Index

Constructors

constructor

Properties

Protected extraDiscussions

extraDiscussions: Discussion[] = []

Protected initialLoading

initialLoading: boolean = false

Protected loadingNext

loadingNext: boolean = false

Protected loadingPrev

loadingPrev: boolean = false

Protected location

Protected pageSize

pageSize: number

Protected pages

pages: Page<Discussion>[] = []

Protected params

params: P = ...

Accessors

type

  • get type(): string

Methods

addDiscussion

clear

  • clear(): void

Protected getAllItems

getLocation

Protected getNextPageNumber

  • getNextPageNumber(): number

getPages

getParams

  • getParams(): P

Protected getPrevPageNumber

  • getPrevPageNumber(): number

hasItems

  • hasItems(): boolean

hasNext

  • hasNext(): boolean

hasPrev

  • hasPrev(): boolean

isEmpty

  • isEmpty(): boolean

isInitialLoading

  • isInitialLoading(): boolean

isLoading

  • isLoading(): boolean

isLoadingNext

  • isLoadingNext(): boolean

isLoadingPrev

  • isLoadingPrev(): boolean

isSearchResults

  • isSearchResults(): boolean

loadNext

Protected loadPage

loadPrev

Protected paramsChanged

  • paramsChanged(newParams: P): boolean

Protected parseResults

refresh

  • refresh(page?: number): Promise<void>

refreshParams

  • refreshParams(newParams: P, page: number): Promise<void>

removeDiscussion

requestParams

sortMap

  • sortMap(): any

Generated using TypeDoc version 0.22.10