Back to Website
Show / Hide Table of Contents

Class AuPIMDesignSelector

Package: ui-framework

Properties

container

Declaration
public container: any
Property Value
Type Description
any

currentPage

Declaration
public currentPage: number = 1
Property Value
Type Description
number

displayedVariants

Declaration
public displayedVariants: ProductInformationDesign[] = []
Property Value
Type Description
ProductInformationDesign[]

imageIsLoading

Declaration
public imageIsLoading: boolean = true
Property Value
Type Description
boolean

ironSelectorElement

Declaration
public ironSelectorElement: IronSelectorElement
Property Value
Type Description
IronSelectorElement

pages

Declaration
public pages: number = 1
Property Value
Type Description
number

params

Properties of this widget.

Declaration
public params: IDesignSelectorConfig
Property Value
Type Description
IDesignSelectorConfig

Properties of this widget.

showPagination

Declaration
public showPagination: boolean = false
Property Value
Type Description
boolean

sku

Declaration
string | null sku
Property Value
Type Description
string | null

value

A gallery item.

Declaration
public value: ProductInformationDesign
Property Value
Type Description
ProductInformationDesign

A gallery item.

variants

Declaration
public variants: ProductInformationDesign[] = []
Property Value
Type Description
ProductInformationDesign[]

Methods

checkInitDependenciesWidgets()

Returns an array of widget names, due to which the current widget cannot receive parameters.

Declaration
function checkInitDependenciesWidgets()
Returns
Type Description
string[]

clearSelection()

Declaration
function clearSelection()

exportWidgetData(boolean)

Declaration
function exportWidgetData(force: boolean)
Parameters
Type Name Description
boolean force
Returns
Type Description
Promise<any>

onWidgetDisplayAsync()

Declaration
function onWidgetDisplayAsync()
Returns
Type Description
Promise<void>

ready()

Declaration
function ready()

resetPreloaderState()

Declaration
function resetPreloaderState()

restoreWidgetFromData(any, boolean)

Declaration
function restoreWidgetFromData(widgetData: any, force: boolean)
Parameters
Type Name Description
any widgetData
boolean force
Returns
Type Description
Promise<void>

showPreloader(boolean, string | string[], number)

Shows a preloader.

"onClick": [
  "{{#function main.showPreloader(true, 'Creating print files...')}}",
  "{{#function $['editor'].getHiResImages(800,800)}}",
  "{{#function main.showPreloader(false)}}"
]
Declaration
function showPreloader(isPreload: boolean, message: string | string[], timeout: number)
Parameters
Type Name Description
boolean isPreload

If true, enables the preloader.

string | string[] message

A text message that appears next to the preloader.

number timeout

showToast(string, number)

Shows a toast.

return editor.loadUserInfo(data)
    .catch(err => {
        this.widget.showToast("Error: Invalid data");
        console.log(err);
    });
Declaration
function showToast(data?: string, duration?: number)
Parameters
Type Name Description
string data

A string message to display in the toast.

number duration

Defines how long to show the toast for.

Was this page helpful?
Thanks for your feedback!
Back to top Copyright © 2001–2024 Aurigma, Inc. All rights reserved.
Loading...
    Thank for your vote
    Your opinion is important to us. To provide details, send feedback.
    Send feedback