API Reference
Platform docs

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

ParameterTypeDescription
slotComponentInstance[] | undefined

Returns:

Array<ComponentInstance & TestVariant>

Join our community on Discord
Check out our public repositories on GitHub
Enjoy some video content on YouTube