File

projects/storefrontlib/shared/config/view-config.ts

Index

Properties

Properties

Optional view
Type : literal type
import { Injectable } from '@angular/core';
import { Config } from '@spartacus/core';

@Injectable({
  providedIn: 'root',
  useExisting: Config,
})
export abstract class ViewConfig {
  view?: {
    /**
     * Configurations related to the view of the application
     */
    defaultPageSize?: number;
    infiniteScroll?: {
      active?: boolean;
      productLimit?: number;
      showMoreButton?: boolean;
    };
  };
}

declare module '@spartacus/core' {
  interface Config extends ViewConfig {}
}

result-matching ""

    No results matching ""