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
}
Observable| Default | – |
|---|---|
| Description | The page metadata for the collection. The page metadata for the collection. The page metadata for the collection. |
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. |
Observable| Default | – |
|---|---|
| Description | The number of items in the collection. The number of items in the collection. The number of items in the collection. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
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. |
voidDispatches the given action.
| Parameter | action: Action |
|---|---|
| Description | action to dispatch. |