interface ListProductsForDemandOptions {
    catalogApi: Pick<CatalogApi<unknown, unknown, unknown>, "listProductsForActiveStatus">;
    nameForCategory?: ((name, t) => string);
    numberOfProducts: number;
    productRoute: string;
    showSubtitle?: boolean;
    titleAlignment?: "center" | "end" | "start" | "stretch" | "stretch-text-center";
}

Properties

catalogApi: Pick<CatalogApi<unknown, unknown, unknown>, "listProductsForActiveStatus">

catalog api for listing products

nameForCategory?: ((name, t) => string)

Name function for Categories. Use for translating category names. Default behavior will use the translation given by Geekle:categories.${name}

Type declaration

    • (name, t): string
    • Name function for Categories. Use for translating category names. Default behavior will use the translation given by Geekle:categories.${name}

      Parameters

      • name: string
      • t: TFunction<"translation", undefined>

      Returns string

numberOfProducts: number

configure the number of products listed

productRoute: string

route used to navigate to when clicking on item

showSubtitle?: boolean

Hide the subtitle

titleAlignment?: "center" | "end" | "start" | "stretch" | "stretch-text-center"

alignment of the title

Generated using TypeDoc