Options
All
  • Public
  • Public/Protected
  • All
Menu

Type parameters

Hierarchy

  • PagedDataSource

Index

Constructors

constructor

Properties

count$

count$: Observable<number>

data

data: T[] = []

hasMore$

hasMore$: Observable<boolean>

lastKey

lastKey: Key | null

loading$

loading$: Observable<boolean>

loadingSubject

loadingSubject: BehaviorSubject<boolean> = new BehaviorSubject(false)

meta$

meta$: Observable<PagedRequestMeta>

metaSubject

metaSubject: BehaviorSubject<PagedRequestMeta> = new BehaviorSubject({ current: 0, total: 0, hasMore: false })

nextSubject

nextSubject: Subject<void> = new Subject<void>()

Private pageSize

pageSize: number

Methods

addItem

  • addItem(item: T): void

editItem

  • editItem(updatedItem: T, predicate: any): void
  • will search for the item using _.findIndex(predicate) and replaces the found item with the updatedItem, logs an error if the item to replace could not be found

    Parameters

    • updatedItem: T
    • predicate: any

    Returns void

Private fetchData

  • fetchData(request: Pageable<T, R, O>): Observable<T[]>

next

  • next(): void

removeItem

  • removeItem(item: T): void

Private reset

  • reset(): void

Legend

  • Module
  • Object literal
  • Variable
  • Function
  • Function with type parameter
  • Index signature
  • Type alias
  • Enumeration
  • Enumeration member
  • Property
  • Method
  • Interface
  • Interface with type parameter
  • Constructor
  • Property
  • Method
  • Index signature
  • Class
  • Class with type parameter
  • Constructor
  • Property
  • Method
  • Accessor
  • Index signature
  • Inherited constructor
  • Inherited property
  • Inherited method
  • Inherited accessor
  • Protected property
  • Protected method
  • Protected accessor
  • Private property
  • Private method
  • Private accessor
  • Static property
  • Static method

Generated using TypeDoc