I need to create a component which is similar to the flex dropdown. When closed - it looks exactly like the dropdown. when user click to open it opens a floating element. in each view I would like to populate this element with different components (sometimes it may hold radio buttons, in other case a full form that the user has to fill, and in another case it may display an image).
which is the best way to approch to this feature? can I find on the web existing examples that may require just a little modification?
Thanks for your reply. I tried to use an item renderer. The problem was that click on an element in the dropdown (remember that it can hold a form with textboxes, checkboxes etc.) would close the dropdown. Instead i need it to remain open while working on the form in the item renderer. it should be closed when clicking on a close button somewhere on the item renderer.