Select to view content in your preferred language

Custom widget template

973
4
03-29-2011 06:12 AM
SaugatJoshi
Deactivated User
I am trying trying to float the header controller widget in the Flex viewer. I simply added it to the widget template and it works fine. However, I want to modify some of the widget template behavior. If I modify the widget template it is going to reflect back on all other widgets (which I do not want). Better, would be to create a new customized widget template for the Header Controller. I found the pdf for flex Viewer 1.x. Are there any developer's pdf for Viewer 2.2. Any alternative suggestions to this.
Tags (2)
0 Kudos
4 Replies
MehulChoksey
Esri Contributor
In your case, Create a copy of WidgetTemplate skin and assign that to skinclass of widgetTemplate
e.g.
 <viewer:WidgetTemplate width="300" height="300"
                           minHeight="300"
                           minWidth="300" skinClass="com.esri.viewer.skins.MyCustomWidgetTemplateSkin">


This will not interfere with the default WidgetTemplate that is used by other widgets.

Hope this helps.
0 Kudos
SaugatJoshi
Deactivated User
Thanks Mehul. I think that will work out. Do we have any developer's pdf for Flex viewer 2.2 ? If so that would be great.
0 Kudos
BjornSvensson
Esri Regular Contributor
The documentation for the Flex Viewer is online at the Resource Center for ArcGIS Viewer for Flex.  There's no separate pdf file.

You might also like the "Configuring and Customizing the ArcGIS Viewer for Flex" presentation we gave at Esri Developer Summit last month.  Most of the content of that video is not yet part of the flex viewer developer resource center, but should be soon (next month).
0 Kudos
Marlon_JoséLópez_Meza
Emerging Contributor
In your case, Create a copy of WidgetTemplate skin and assign that to skinclass of widgetTemplate
e.g.
 <viewer:WidgetTemplate width="300" height="300"
                           minHeight="300"
                           minWidth="300" skinClass="com.esri.viewer.skins.MyCustomWidgetTemplateSkin">


This will not interfere with the default WidgetTemplate that is used by other widgets.

Hope this helps.


Hi,

Where can I find a live example of a custom widget template for arcgis flex viewer?
I tried to edit the widgetTemplate skin class and when i render the component such events as resize, that i disabled or set as false, breaks the functionality of widget.

best regards,

Edit: the flexviewer online samples do not shows a widget with a custom skin for widget template, thats a good reason for posting some samples here and publish them.
0 Kudos