Hierarchy

  • SearchAndBrowseUI

Implements

Constructors

Properties

_browseScreens: {
    [key: string]: HTMLElement;
} = {}

Type declaration

  • [key: string]: HTMLElement
_productScreens: {
    [key: string]: HTMLElement;
} = {}

Type declaration

  • [key: string]: HTMLElement
_root: HTMLElement
_searchAndFilter: SearchAndFilter
addingClassName: string = 'sb-product-adding'
browseData: {
    description: string;
    id: string;
    options: readonly ({ readonly id: string; readonly label: string; readonly image: string; })[];
    showBackButton?: boolean;
    title: string;
}

Type declaration

  • Readonly description: string
  • Readonly id: string
  • Readonly options: readonly ({ readonly id: string; readonly label: string; readonly image: string; })[]
  • Optional Readonly showBackButton?: boolean
  • Readonly title: string
cardPopover: Popover
headerDescription: HTMLElement
headerTitle: HTMLElement
productData: {
    categoryId: string;
    description: string;
    options: readonly ({ readonly productInfo: { readonly product: { readonly sku?: string; readonly productId?: string; readonly clientProductId?: string; readonly name?: string; readonly description?: string; readonly price?: number; ... 44 more ...; readonly setCustomProductAssembly: (productAssemblies: ProductAssembly[]) => void; }; r...)[];
    searchTitle?: string;
    showBackButton: boolean;
    title: string;
}

Type declaration

  • Readonly categoryId: string
  • Readonly description: string
  • Readonly options: readonly ({ readonly productInfo: { readonly product: { readonly sku?: string; readonly productId?: string; readonly clientProductId?: string; readonly name?: string; readonly description?: string; readonly price?: number; ... 44 more ...; readonly setCustomProductAssembly: (productAssemblies: ProductAssembly[]) => void; }; r...)[]
  • Optional Readonly searchTitle?: string
  • Readonly showBackButton: boolean
  • Readonly title: string
scrollable: HTMLElement
searchTitle: HTMLElement

Accessors

Methods

  • Attempts to retrieve a screen for the given category id, if it exists. If it does not, then a new one is created, stored and returned.

    Returns

    The screen wrapper element.

    Parameters

    • categoryId: string

      The category id for the screen.

    Returns HTMLElement

  • Parameters

    • b: {
          id: string;
          image: string;
          label: string;
      }
      • Readonly id: string
      • Readonly image: string
      • Readonly label: string

    Returns HTMLElement

  • Parameters

    • showBackButton: boolean
    • showSearchAndFilters: boolean

    Returns void

  • Parameters

    • data: {
          description: string;
          id: string;
          options: readonly ({ readonly id: string; readonly label: string; readonly image: string; })[];
          showBackButton?: boolean;
          title: string;
      }
      • Readonly description: string
      • Readonly id: string
      • Readonly options: readonly ({ readonly id: string; readonly label: string; readonly image: string; })[]
      • Optional Readonly showBackButton?: boolean
      • Readonly title: string

    Returns void

  • Parameters

    • productData: {
          categoryId: string;
          description: string;
          options: readonly ({ readonly productInfo: { readonly product: { readonly sku?: string; readonly productId?: string; readonly clientProductId?: string; readonly name?: string; readonly description?: string; readonly price?: number; ... 44 more ...; readonly setCustomProductAssembly: (productAssemblies: ProductAssembly[]) => void; }; r...)[];
          searchTitle?: string;
          showBackButton: boolean;
          title: string;
      }
      • Readonly categoryId: string
      • Readonly description: string
      • Readonly options: readonly ({ readonly productInfo: { readonly product: { readonly sku?: string; readonly productId?: string; readonly clientProductId?: string; readonly name?: string; readonly description?: string; readonly price?: number; ... 44 more ...; readonly setCustomProductAssembly: (productAssemblies: ProductAssembly[]) => void; }; r...)[]
      • Optional Readonly searchTitle?: string
      • Readonly showBackButton: boolean
      • Readonly title: string

    Returns void

Generated using TypeDoc