gxp.form.ViewerField
¶
-
class
gxp.form.
ViewerField
(config)¶ A form field that holds an entire
gxp.Viewer
. This field is used to process geospatial information in forms. By itself, this field does nothing but showing a map viewer in a form element, aligned with field label and suited for anExt.layouts.FormLayout
.To actually have this field’s textarea populated with information, a plugin accessing the additional
field
property that this component adds to itsgxp.Viewer
instance is required. Seegxp.plugins.FeatureToField
for a basic plugin that does this.
Config Options¶
Configuration properties in addition to those listed for Ext.form.Field.
-
height
Number
Height of the map viewer. Default is 220.
-
viewer
Object
Configuration passed to thegxp.Viewer
constructor. TheportalConfig
will be extended to make sure that the portal is rendered into this field.
-
width
Number
Width of the map viewer. Default is 350.
Public Properties¶
Public properties in addition to those listed for Ext.form.Field.
-
ViewerField.
viewer
¶ gxp.Viewer
The viewer wrapped by this field. This component adds an additionalfield
(Ext.form.TextArea
) property to the viewer, which is to be populated by a viewer plugin to actually give this field a value.