function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Sahil Yadav 4Sahil Yadav 4 

Could we add images in combo box in Aura

User-added image




An above Image is custom component which holds certain value of a country now I needed that just next to an individual values ,countries flag should be get visible how couuld we achieve this not sure...
any suggestion would be appreciable.

Note :-
Combo box values 

1. USA    (USA Flag)
2. CANADA    (Canada Flag)
3. UK (Uk Flag)
 
This is COmponent Code :- 



<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
	<aura:attribute
        name="modes"
        type="List"
        default="[
                 {'label': 'None', 'value': 'none'  } ,
                 {'label': 'UK', 'value': 'uk'  } ,
                 
         
    {'label': 'CANADA', 'value': 'canada'},
    {'label': 'USA','value': 'us'},
    ]"
    />
    <lightning:card  class="slds-align_absolute-center" title="SELECT COUNTRY">
        
        <lightning:layout horizontalAlign="center" multipleRows="true">
            <lightning:layoutItem padding="around-small" class="slds-align_absolute-center">
               
                <lightning:combobox
                    name="Country"
                    label="Game Mode"
                    value="inProgress"
                    variant="label-hidden"
                    aura:id="Country"
                    options="{!v.modes}"
                    placeholder="Select Countries"
                                    onchange = "{!c.handlechanged}"
                                     
                />
            </lightning:layoutItem>
        </lightning:layout>
    </lightning:card>
</aura:component>

 
PriyaPriya (Salesforce Developers) 
Hi Sahil,

The idea of adding images to combox is already created please upvote it 
https://ideas.salesforce.com/s/idea/a0B8W00000GdjCcUAJ/allow-adding-images-in-lightning-combobox

Regards,
Ranjan
Waleed Khan 8Waleed Khan 8
The idea of adding images to the combo is really good. I am also interested in it. I have read about another code Youtube Video Pro Tags code (https://youtubethumbnailsdownloader.net/youtube-video-tags-finder/) and perform the best. Thanks