Web SDK Reference - Check configuration validity
window.twikit.checkConfiguration
checks the validity of an existing configuration based on the configuration id.
window.twikit.checkConfiguration(configurationId, startupParameters): Promise<Object{}>
Example usage
Make sure the plugin script is fully loaded before checking the validity of a configuration.
JavaScript
window.twikit.checkConfiguration(configurationId, startupParameters)
.then(function(result) {
console.log('checkConfiguration result', result);
}) ;
Parameters
Name | Type | Required | Description |
---|---|---|---|
configurationId |
| yes | Key of the previously created configuration to check the validity on. |
startupParameters |
| no | Object with parameter settings to use when starting the configurator. This can be used to enable or disable parameter options given a startup value. E.g. In a car configurator, a limited set of interior colors is available given a preselected exterior car color. |
Returns
Type | Required | Description |
---|---|---|
| yes | An object with
CODE
If there are no issues, |