Select to view content in your preferred language

Attribution Dijit - change default behaviour ?

802
2
04-01-2013 06:16 AM
BillHoney
Occasional Contributor
Does anyone know of a way of making the attribution dijit "open" by default.

When you click on the widget it opens up.  I'd like the map to start up with the dijit already open.

I've tried forcing it open like like below,  but nothing seems to work
        
var attribution = map.attribution;
// try & force the digit open - none of these work 
attribution.declaredClass = "esriAttribution esriAttributionOpen";
attribution.domNode.className = "esriAttribution esriAttributionOpen";
attribution.domNode.click(); 


Any ideas ?  Bill
0 Kudos
2 Replies
BillHoney
Occasional Contributor
Can anyone help with this?
Our customer is insisting that all copyrights appear when the map starts up

Bill
0 Kudos
BillHoney
Occasional Contributor
In case anyone has a similar problem, I've found a workaround

map.attribution.domNode.className = "esriAttribution esriAttributionOpen";


But it appears that you can't call this in the map.OnLoad()
I've put it in map.onLayersAddResults() & it works

Bill
0 Kudos