onModelUpdated
On this page
@vulp/js-api > VulpApiModel > onModelUpdated
VulpApiModel.onModelUpdated() method
Registers a handler to be executed when the model is updated. For example when a color is changed or a customize option is selected. By registering a handler, the model configuration can be updated in the parent application.
Signature:
onModelUpdated(handler: ApiModelUpdatedMessageHandler): VulpApiModel;
Parameters
Parameter | Type | Description |
---|---|---|
handler | The handler to be executed. |
Returns:
The Vulp API model instance, can be used to chain calls.