interface ProductSearchDefaultListViewProps {
    hasMoreResults: boolean;
    isLoading: boolean;
    nameForCategory: ((name, t) => string);
    onNavigate: ((to, options?) => void);
    productRoute: string;
    products: ProductResponse<unknown, unknown, unknown>[];
    triggerLoadMore: (() => void);
    urlForRoute: UrlForRouteFunction;
}

Properties

hasMoreResults: boolean

Boolean indicating if there are more results to load.

isLoading: boolean

Boolean indicating if the product list is currently loading.

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

onNavigate: ((to, options?) => void)

Function to handle navigation when a product card is clicked.

Type declaration

    • (to, options?): void
    • Function to handle navigation when a product card is clicked.

      Parameters

      • to: string
      • Optional options: NavigateOptions

      Returns void

productRoute: string

Route used to navigate to when clicking on a product item.

products: ProductResponse<unknown, unknown, unknown>[]

Array of products to be displayed in the list.

triggerLoadMore: (() => void)

Function to trigger loading more products.

Type declaration

    • (): void
    • Function to trigger loading more products.

      Returns void

urlForRoute: UrlForRouteFunction

Function to generate URL for a given route and parameters.

Generated using TypeDoc