File

projects/storefrontlib/cms-components/cart/cart-shared/cart-item/model/cart-item-context.model.ts

Description

Context for CartItemComponent.

Index

Properties

Properties

Readonly compact$
Type : Observable<boolean>
Readonly item$
Type : Observable<OrderEntry>
Readonly location$
Type : Observable<PromotionLocation>
Readonly options$
Type : Observable<CartItemComponentOptions>
Readonly quantityControl$
Type : Observable<FormControl>
Readonly readonly$
Type : Observable<boolean>
import { Injectable } from '@angular/core';
import { FormControl } from '@angular/forms';
import { OrderEntry, PromotionLocation } from '@spartacus/core';
import { Observable } from 'rxjs';
import { CartItemComponentOptions } from '../cart-item.component';

/**
 * Context for `CartItemComponent`.
 */
@Injectable()
export abstract class CartItemContext {
  readonly compact$: Observable<boolean>;

  readonly readonly$: Observable<boolean>;

  readonly item$: Observable<OrderEntry>;

  readonly quantityControl$: Observable<FormControl>;

  readonly location$: Observable<PromotionLocation>;

  readonly options$: Observable<CartItemComponentOptions>;
}

result-matching ""

    No results matching ""