Skip to main content

Function: updateSegmentations()

updateSegmentations(segmentationUpdateArray, suppressEvents?): void

Updates multiple segmentations with new data.

Parameters

segmentationUpdateArray: object[]

An array of objects containing segmentation updates. Each object should have a segmentationId and a payload with the properties to update.

suppressEvents?: boolean

If true, the segmentation modified event will not be triggered.

Returns

void

Example

updateSegmentations([
{ segmentationId: 'seg1', payload: { label: 'New Label' } },
{ segmentationId: 'seg2', payload: { segments: {} } }
]);

Defined in

tools/src/stateManagement/segmentation/updateSegmentations.ts:20