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
productFilterId?
optional productFilterId?: number;
Inherited from
IApiPointParams.productFilterId
skip?
optional skip?: number;
Inherited from
take?
optional take?: number;
Inherited from
IEventCallbacks
Type Parameters
| Type Parameter | Default type |
|---|---|
T | any |
Properties
onError
onError: (error?) => void;
Parameters
| Parameter | Type |
|---|---|
error? | any |
Returns
void
onSuccess
onSuccess: (response?) => void;
Parameters
| Parameter | Type |
|---|---|
response? | T |
Returns
void