Select to view content in your preferred language

StaticImage widget

775
2
01-31-2011 11:18 AM
CharlesDawley
Regular Contributor
Any way to put a widget wrapper around the StaticImage widget so a user could close/minimize it?
Tags (2)
0 Kudos
2 Replies
MehulChoksey
Esri Contributor
In StaticImageWidget.mxml
change from:

<mx:Image id="img"/>    


To:
<viewer:WidgetTemplate id="wTemplate"
                           width="300" height="300">
        <mx:Image id="img"/>    
    </viewer:WidgetTemplate>

and male sure to "add icon" property in the config.xml as follows :

<widget icon="assets/images/i_target.png" bottom="35" right="5" config="widgets/StaticImage/StaticImageWidget.xml" url="widgets/StaticImage/StaticImageWidget.swf"/>
0 Kudos
BrianKaplan
Frequent Contributor
Is this solution the only option at this point?  Could the flexviewer include this as command in the tag?  Thanks.
0 Kudos