Skip to main content

au-widget-pim-ajax/interfaces/configuration

Interfaces

IApiPointParams

Extended by

Properties

enabled
enabled: boolean;
productFilterId?
optional productFilterId?: number;
skip?
optional skip?: number;
take?
optional take?: number;

IConfigProductInformationAJAX

A widget that is used to get product interface.

{
"widgets": [
{
"name": "pim-ajax",
"type": "pim-ajax",
"params": {
"productId": "{{ Product.id }}",
"options": {"7804":"11519"}, // { "opt1_id": "opt1_val1_id, opt1_val2_id", "opt2_id": "opt2_val1_id" }
"settings": {
"designs": {
"enabled": true
},
"variants": {
"enabled": true
},
"mockups": {
"enabled": true
}
},
"eventsCallbacks": {
"options": {
"onError": "{{ #function(err) console.warn(err); }}",
"onSuccess": "{{ #function(response) console.warn(response); }}"
},
"designs": {
"onError": "{{ #function(err) console.warn(err); }}",
"onSuccess": "{{ #function(response) console.warn(response); }}"
},
"variants": {
"onError": "{{ #function(err) console.warn(err); }}",
"onSuccess": "{{ #function(response) console.warn(response); }}"
}
}
}
]
}
}
]
}

Properties

choices
choices: Record<string, number[]>;
currentSku
currentSku: string;
eventsCallbacks
eventsCallbacks: object;
designs
designs: IEventCallbacks;
mockups
mockups: IEventCallbacks;
options
options: IEventCallbacks;
variants
variants: IEventCallbacks;
options
options: Record<string, string | string[]>;
productId?
optional productId?: number;
productLinkId?
optional productLinkId?: number;
productVersionId?
optional productVersionId?: number;
settings
settings: object;
designs
designs: IDesignVariantApiPointParams;
mockups
mockups: IApiPointParams;
variants
variants: IApiPointParams;

IDesignVariantApiPointParams

Extends

Properties

designPath
designPath: string;
enabled
enabled: boolean;
Inherited from

IApiPointParams.enabled

productFilterId?
optional productFilterId?: number;
Inherited from

IApiPointParams.productFilterId

skip?
optional skip?: number;
Inherited from

IApiPointParams.skip

take?
optional take?: number;
Inherited from

IApiPointParams.take


IEventCallbacks

Type Parameters

Type ParameterDefault type
Tany

Properties

onError
onError: (error?) => void;
Parameters
ParameterType
error?any
Returns

void

onSuccess
onSuccess: (response?) => void;
Parameters
ParameterType
response?T
Returns

void

Was this page helpful?