The setValue() method updates the value of a parameter.
JavaScript
setValue(
parameterId: string,
value: string | number
): void,
Parameters
|
Name |
Type |
Description |
|---|---|---|
|
parameterId |
|
The ID of the parameter, unique in the product. Can be retrieved from the parameter HTML element or parameter data. |
|
value |
|
New parameter value to set. |
Example usage
JavaScript
window.twikit.setValue("52-wheel-patterns-38-select-a-pattern", "Cross");