0

I am trying to add an icon in tabs Labels of a lightning:tabset.

        <lightning:tabset   >
            <lightning:tab  >
                <aura:set attribute="label"  >
                    tab 1 
                    <lightning:icon iconName="utility:chevronup" />
                </aura:set>

                content tab 1

            </lightning:tab>

            <lightning:tab  >
                <aura:set attribute="label"  >
                    tab 2 
                    <lightning:icon iconName="utility:chevronup" />
                </aura:set>
                content tab 2
            </lightning:tab>
    </lightning:tabset>
  1. With this code the tabs displaying correctly but not the Icons.
  2. If I use Ligtning tabset as it describe here : https://developer.salesforce.com/docs/component-library/bundle/lightning:tab/specification ; Is it possible to change size and color of the Icon. Is it possible to display the icon on condition ?
4

0

You must log in to answer this question.

Browse other questions tagged .