GitHub

DaffCategoryProductCollectionFacade

Facade

import { DaffCategoryProductCollectionFacade } from '@daffodil/category/state'

@Injectable()
class DaffCategoryProductCollectionFacade extends DaffCollectionFacade<DaffCategoryStateRootSlice> implements DaffCollectionFacadeInterface {
  metadata$: Observable<TMetadata>
  request$: Observable<DaffCollectionRequest>
  count$: Observable<number>
  currentPage$: Observable<number>
  totalPages$: Observable<number>
  pageSize$: Observable<number>
  sortOptions$: Observable<DaffSortOption[]>
  appliedSortOption$: Observable<string>
  appliedSortDirection$: Observable<DaffSortDirectionEnum>
  filters$: Observable<DaffFilters>
  appliedFilters$: Observable<DaffFilters>

  dispatch(action: Action<string>): void
}

Properties

metadata$
Observable
Default –
Description

The page metadata for the collection. The page metadata for the collection. The page metadata for the collection.

request$
Observable<DaffCollectionRequest>
Default –
Description

Builds a request that matches the current collection. Builds a request that matches the current collection. Builds a request that matches the current collection.

count$
Observable
Default –
Description

The number of items in the collection. The number of items in the collection. The number of items in the collection.

currentPage$
Observable
Default –
Description

The current page of items for the collection. The current page of items for the collection. The current page of items for the collection.

totalPages$
Observable
Default –
Description

The number of pages of items available in the collection. The number of pages of items available in the collection. The number of pages of items available in the collection.

pageSize$
Observable
Default –
Description

The number of items per page for the collection. The number of items per page for the collection. The number of items per page for the collection.

sortOptions$
Observable<DaffSortOption[]>
Default –
Description

The sort options available for the items of the collection. The sort options available for the items of the collection. The sort options available for the items of the collection.

appliedSortOption$
Observable
Default –
Description

The sort options available for the items of the collection. The sort options available for the items of the collection. The sort options available for the items of the collection.

appliedSortDirection$
Observable<DaffSortDirectionEnum>
Default –
Description

The sort options available for the items of the collection. The sort options available for the items of the collection. The sort options available for the items of the collection.

filters$
Observable<DaffFilters>
Default –
Description

The filters available for the entities of the collection. The filters available for the entities of the collection. The filters available for the entities of the collection.

appliedFilters$
Observable<DaffFilters>
Default –
Description

The sort options available for the entities of the collection. The sort options available for the entities of the collection. The sort options available for the entities of the collection.

() Methods

dispatch
void

Dispatches the given action.

Parameters
Parameteraction: Action
Description

action to dispatch.