I'm building a Lightning component for communities and haven't found any questions mentioning this requirement.
design:attribute elements for component configuration, mainly, the rating type.
<design:attribute name="ratingType" label="label here" description='Description here' datasource='Type 1,Type 2,Type 3'/> <design:attribute name="conditionalCheckBox" label="label here" description='Description here'/> <aura:attribute name='ratingType' type='String'/> <aura:attribute name='conditionalCheckBox' type='Boolean'/>
I have another design attribute that is only applicable if, for example, type 1 is selected in the component configuration. If type 1 is selected, I'd like to display a checkbox (
conditionalCheckBox) for further customization. Is it possible to only show this checkbox design attribute in the component configuration based on a previous selection?