Show Image and label in Drop down list in Flex

Posted By : Sumit Rathi | 23-Dec-2013

In this blog I am going to share the details of how we can show image in drop down list.

The DropDownList control pops up a list when the user selects the anchor.

When the user selects an item from the drop-down list, the data item appears in the prompt area of the control.

 

MXML Syntax:-User can define a DropDownList control by using <s:DropDownList> tag.Data provider is the default property of the dropdownlist.

You can pass data for dropdown list using this property.

 

Example:-







 





 

We can customise  the dropdown list desgin and pass the data according to the desgin requirments.

Here is the example to show image and label in a dropdown list.












 












 


 

 


 

Hope it helps :)

Sumit Rathi

[email protected]

About Author

Author Image
Sumit Rathi

Sumit is a highly experienced Backend Developer with a diverse technological background. He possesses an extensive understanding of the latest technologies and has practical expertise in Core Java, Spring Boot, Hibernate, as well as relational databases like MySQL and PostgreSQL. His proficiency extends to API implementations, Microservices, and Web Services development. Sumit actively contributes to code enhancements and consistently delivers valuable contributions to various client projects, including MyHelpa, NOWcast Church Engagement Development, OptaPlanner - Employee Rostering, Optaplanner customization for a medical practice, Handymen Application Upgradation II, LabVue, and more. He showcases exceptional analytical skills and a creative mindset. Furthermore, he has a passion for reading books and exploring new technologies and innovations.

Request for Proposal

Name is required

Comment is required

Sending message..