Home > @uniformdev/canvas > mapSlotToTestVariations
mapSlotToTestVariations() function
Converts components in a slot into test variations (based on each component's Context tag in Canvas) suitable to pass to a personalize component Useful when implementing custom test settings for Canvas components.
Signature:
Parameters
Parameter | Type | Description |
---|---|---|
slot | ComponentInstance[] | undefined |
Returns:
Array<ComponentInstance & TestVariant>