Constructors
Declaration
new AuWidgetProductInformationAJAX()
Properties
Declaration
Property Value
Declaration
ProductCostDetailsDto costDetails
Property Value
Type |
Description |
ProductCostDetailsDto |
|
Declaration
Property Value
Declaration
Record<string, number[]> currentChoices
Property Value
Type |
Description |
Record<string, number[]> |
|
Declaration
ProductInformationDesign[] designs
Property Value
Declaration
ApiParams designsSettings
Property Value
Declaration
Record<string, number[]> driverChoices
Property Value
Type |
Description |
Record<string, number[]> |
|
Declaration
boolean isPreselectSelectionStrategy
Property Value
Declaration
ProductInformationMockup[] mockups
Property Value
Declaration
ApiParams mockupsSettings
Property Value
Declaration
ProductInformationOption[] options
Property Value
Compiled widget configuration.
Declaration
Property Value
Type |
Description |
any |
Compiled widget configuration.
|
Declaration
Property Value
Declaration
Property Value
Declaration
string | number productId
Property Value
Type |
Description |
string | number |
|
Declaration
string | number productLinkId
Property Value
Type |
Description |
string | number |
|
Declaration
string | number productVersionId
Property Value
Type |
Description |
string | number |
|
Declaration
Property Value
Declaration
Property Value
Declaration
string selectedVariantSku
Property Value
Declaration
SelectionStrategy selectionStrategy
Property Value
Type |
Description |
SelectionStrategy |
|
Declaration
Property Value
Declaration
Property Value
Declaration
Property Value
Declaration
Property Value
Declaration
Property Value
Declaration
Property Value
Declaration
ProductInformationVariant[] variants
Property Value
Declaration
Record<string, number[]>[] variantsHashMap
Property Value
Type |
Description |
Record<string, number[]>[] |
|
Declaration
ApiParams variantsSettings
Property Value
Methods
Returns an array of widget names, due to which the current widget cannot receive parameters.
Declaration
function checkInitDependenciesWidgets()
Returns
Type |
Description |
string[] |
|
Declaration
function exportWidgetData(force: boolean)
Parameters
Type |
Name |
Description |
boolean |
force |
|
Returns
Type |
Description |
Promise<any> |
|
Declaration
function getDesignVariants(productId: number, params: ApiParams)
Parameters
Type |
Name |
Description |
number |
productId |
|
ApiParams |
params |
|
Returns
Type |
Description |
Promise<PagedOfProductVariantDesignDto> |
|
Declaration
function getMockupVariants(productId: number, params: ApiParams)
Parameters
Type |
Name |
Description |
number |
productId |
|
ApiParams |
params |
|
Returns
Type |
Description |
Promise<PagedOfProductVariantDesignDto> |
|
Declaration
function getProductVariants(productId: number, params: ApiParams)
Parameters
Type |
Name |
Description |
number |
productId |
|
ApiParams |
params |
|
Returns
Type |
Description |
Promise<PagedOfProductVariantDto> |
|
Declaration
function resetPreloaderState()
Declaration
function restoreWidgetFromData(data: any, force: boolean)
Parameters
Type |
Name |
Description |
any |
data |
|
boolean |
force |
|
Returns
Type |
Description |
Promise<void> |
|
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 |
|
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.
|