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
<table><thead><tr><th>
Parameter
</th><th>
Type
</th><th>
Description
</th></tr></thead> <tbody><tr><td>
slot
</td><td>
ComponentInstance[] | undefined
</td><td>
</td></tr> </tbody></table> Returns:
Array<ComponentInstance & PersonalizedVariant>