setActiveChoice

Set the active choice in the variant component

Description

setActiveChoice(variantComponent,choice) sets the active choice on the variant component.

Input Arguments

collapse all

Variant component with multiple choices.

Data Types: 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

Introduced in R2019a