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