Set the active choice in the variant component
setActiveChoice(variantComponent,choice)
setActiveChoice(variantComponent,choice) sets the active choice on the variant component.
variantComponent
choice
collapse all
Variant component with multiple choices.
Data Types: systemcomposer.arch.Component
systemcomposer.arch.Component
The choice whose control string is returned by this function. This can be a component object or label of the variant choice.
Data Types: systemcomposer.arch.Component | string
string
addChoice | getActiveChoice | getChoices
addChoice
getActiveChoice
getChoices