Attach event with dropdown on Popup dijit

1200
1
06-20-2014 12:49 PM
BhavinSanghani
Occasional Contributor II
I added html dropdown to the Popup (esri/dijit/Popup). But I am not sure how can I bind onclick event with that. Is there any example?
0 Kudos
1 Reply
KenBuja
MVP Esteemed Contributor
I'm not sure this will help, but I used this technique to get the output from a DropdownButton. I used this to switch basemaps from a drop down list on this site.

            basemapGallery.on("load", function () {
                for (i = 0; i < basemapGallery.basemaps.length; i++) {
                    (function (x) {
                        registry.byId('basemapMenu').addChild(new MenuItem({
                            label: basemapGallery.basemaps.title,
                            onClick: function () {
                                basemapGallery.select(basemapGallery.basemaps.id);
                            }
                        }));
                    }(i));
                }
            });
0 Kudos