Home > widget-integration > QuickViewController
QuickViewController class
Signature:
export declare class QuickViewController extends Controller
Extends: Controller
Constructors
|
Constructor
|
Modifiers
|
Description
|
|---|
|
(constructor)(domHelper, dtoHelper, wcagHelper, appService, cartAPI, productAPI, swatchService, cartController, slickHelper, combinedProductListingController, combinedProductListingsService)
|
|
Constructs a new instance of the QuickViewController class
|
Properties
Methods
|
Method
|
Modifiers
|
Description
|
|---|
|
applySwatchSettings(modal, optionsWithValues)
|
protected
|
|
|
autoSelectFirstAvailableVariant(modal, variants)
|
protected
|
|
|
buildProductDetailUrl(handle, locale, addCollectionToProductUrl)
|
protected
|
|
|
close()
|
|
|
|
dispatchOpenEvent(productId)
|
protected
|
|
|
fetchQuickViewHtml(productId)
|
protected
|
|
|
focusCartModal()
|
protected
|
|
|
getPreOrderButtonText(variant)
|
protected
|
|
|
getPreOrderNoteText(variant)
|
protected
|
|
|
getSellingPlanId(variant)
|
protected
|
|
|
goToSlide(index)
|
|
|
|
handleSliderNavigation(index, images, thumbItems)
|
protected
|
|
|
handleSwatchSelect(modal, option, variants)
|
protected
|
|
|
hideImageSection(html)
|
protected
|
|
|
initAddToCartButton(modal)
|
protected
|
|
|
initBuyNowButton(modal)
|
protected
|
|
|
initCloseHandlers(modal)
|
protected
|
|
|
initModal()
|
protected
|
|
|
initPreorderButton(modal)
|
protected
|
|
|
initQuantityInput(modal)
|
protected
|
|
|
initSelectedOption(option, variants)
|
protected
|
|
|
initSlider()
|
protected
|
|
|
initSwatchSelection(modal, variants, optionsWithValues)
|
protected
|
|
|
initThumbnailEvents()
|
protected
|
|
|
initThumbnailNavigation(modal, images)
|
protected
|
|
|
initWCAGSupport(modal)
|
protected
|
|
|
injectHtml(html)
|
protected
|
|
|
isPreOrderVariant(variant)
|
protected
|
|
|
open(action, triggerElement)
|
|
|
|
parseProductData(modal)
|
protected
|
|
|
selectThumbnail(index)
|
protected
|
|
|
updateAddToCartButton(modal, selectedVariant)
|
protected
|
|
|
updateDetailLink(modal, productData, selectedVariant)
|
protected
|
|
|
updateLabels(modal, selectedVariant)
|
protected
|
|
|
updateNavigationButtons(modal, imageCount)
|
protected
|
|
|
updatePreOrderUI(modal, selectedVariant)
|
protected
|
|
|
updatePrice(modal, selectedVariant)
|
protected
|
|
|
updateSliderForVariant(modal, images, selectedVariant)
|
protected
|
|
|
updateSoldOutLabels(modal, variants)
|
protected
|
|
|
updateSoldOutOption(modal, _option, variants)
|
protected
|
|
|
updateUI(modal, productData, images)
|
protected
|
|