Select to view content in your preferred language

Editor layout

2028
1
Jump to solution
07-14-2012 12:35 PM
AmandaHutsel
Emerging Contributor
Is there a way to change the layout of the templates?  There are two feature layers Historic and Grant with only 1 editable feature each.  They look like this now
[ATTACH=CONFIG]16104[/ATTACH]

but I would like it to look like this.
[ATTACH=CONFIG]16105[/ATTACH]
0 Kudos
1 Solution

Accepted Solutions
BjornSvensson
Esri Regular Contributor
Is there a way to change the layout of the templates?


Yes, using skins.  You can change the skin of the TemplatePicker from the default "TemplatePickerSkin" to either the "simple" TemplatePickerSimpleSkin provided or edit the skin to you liking.  In your case, the provided "simple" skin might be pretty close to what you want.

<fx:Style>         @namespace esri "http://www.esri.com/2008/ags";                  esri|TemplatePicker         {             skinClass: ClassReference("com.esri.ags.skins.TemplatePickerSimpleSkin");         } </fx:Style>


You can read more about skinning on http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Styling_and_skinning_overview/017p...

The skins are listed in the API Reference
http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/skins/package-detail.htm...
and are available in the "API Library download" (with the swc)

See for example
TemplatePickerSimpleSkin - Alternative skin class for the TemplatePicker component which does not group feature templates by feature layers.
http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/skins/package-detail.htm...

View solution in original post

0 Kudos
1 Reply
BjornSvensson
Esri Regular Contributor
Is there a way to change the layout of the templates?


Yes, using skins.  You can change the skin of the TemplatePicker from the default "TemplatePickerSkin" to either the "simple" TemplatePickerSimpleSkin provided or edit the skin to you liking.  In your case, the provided "simple" skin might be pretty close to what you want.

<fx:Style>         @namespace esri "http://www.esri.com/2008/ags";                  esri|TemplatePicker         {             skinClass: ClassReference("com.esri.ags.skins.TemplatePickerSimpleSkin");         } </fx:Style>


You can read more about skinning on http://resources.arcgis.com/en/help/flex-api/concepts/index.html#/Styling_and_skinning_overview/017p...

The skins are listed in the API Reference
http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/skins/package-detail.htm...
and are available in the "API Library download" (with the swc)

See for example
TemplatePickerSimpleSkin - Alternative skin class for the TemplatePicker component which does not group feature templates by feature layers.
http://resources.arcgis.com/en/help/flex-api/apiref/index.html?com/esri/ags/skins/package-detail.htm...
0 Kudos