View Full Version : Add popup overlay (selectfield) to div

15 Jun 2011, 6:55 PM
Hello everyone,

I have a function that creates divs dynamically when a button is clicked. I would like to display a popup overlay when I click over each div (to display options, for example: delete this div, change inner html, go to description panel).

If I understand correctly, what I need to add is a selectfield, but I do not understand correctly how to add this to each particular div that gets created and then manage the events.

I hope you can help me out with some sample code. I have tried adding the code from the kivatouch example to the on click event of my divs, but I haven't been able to make it work.
The function that is triggered by the click is like this:

Ext.get('divID'+count).on('click', function(eventObj, elRef) {
//The x-type selectfield code here?

Thank you in advance