Skip to main content

Type Alias: MountFavourites()

MountFavourites: (uid, favourite, elementId, baseURL, CDNPath, customerId, withWatcher, locale?, variant?, productGroupId?, appUrl?, renderOnMount?, legacy?) => Promise<void>

Display favourites list along with Configurator. Available only for authenticated users

Parameters

uid: string

Embed instance unique id. Typically, embed shortcode. If passed app will try to mount into html element with data-mimmeq-shortcode set to this value and use env for this id

favourite: string

Name of selected favourite collection

elementId: string

ID of HTML element on which mount tree. No longer supported. Please use uid and data-mimeeq-short-code combination instead

baseURL: string

URL to page API

CDNPath: string

URL to storage/CDN

customerId: string

ID of current customer from witch fetch data

withWatcher: boolean

[true] - Assign simple event listener to handle navigation. It's not using history

locale?: string

['en'] - Code of current locale

variant?: string

['standard'] - Variant of list. Can be 'standard', 'modal' or 'listonly'. Standard - render full product list. Modal - same as Standard. Only difference is that it handles scroll of container not window. Listonly generates only list of products with no menu or header.

productGroupId?: Nullable<string>

[null] - ID of product group to show. If provided then there are only products from that group. Not used anymore

appUrl?: string

Current domain. Used to generate AR landing page url. No longer supported. It gets current domain from window.location object instead.

renderOnMount?: boolean

If true, it will render immediately. Otherwise, you need to manually trigger render e.g. by calling mimeeqApp.utils.showConfigurator method.

legacy?: boolean

If true, it will use legacy mode for handling modals

Returns

Promise<void>

Deprecated

Please use utils.mount instead