Is there a way to standardize the text input block size for the attribute inspector? I notice that it is dependent on the size of the field but I cannot find anywhere in the skin where the code decides how big to make the input text box. I have a lot of fields and think it would be more friendly if all input text boxes were of the same size. Thanks for any help!
public class CustomAttributeInspector extends AttributeInspector { public function CustomAttributeInspector(featureLayers:Array=null) { super(featureLayers); } override protected function createFormItemComponent(featureLayer:FeatureLayer, field:Field, fieldInspector:FieldInspector, fieldValue:Object):UIComponent { var uiComponent:UIComponent = super.createFormItemComponent(featureLayer, field, fieldInspector, fieldValue); if (uiComponent is TextArea) { // Darn those TextAreas. Make 'em narrower! uiComponent.maxHeight = 80; } // We want all components to be 100% of the parent's width uiComponent.percentWidth = 100; return uiComponent; } }
Angemeldete Mitglieder können Beiträge verfassen, Updates folgen und mehr. Neu hier? Registriere ein kostenloses Konto.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.