gxp.grid.FeatureGrid¶
-
class
gxp.grid.FeatureGrid(config)¶ Create a new grid displaying the contents of a
GeoExt.data.FeatureStore.
Config Options¶
Configuration properties in addition to those listed for Ext.grid.GridPanel.
-
columnConfig ObjectProperty name/config pairs. Any additional config that should be used on the column, such as making a column non-editable by specifying editable: false
-
columnmenuDisabled BooleanShould the column menu be disabled? Default is false.
-
columnsSortable BooleanShould fields in the grid be sortable? Default is true.
-
customEditors ObjectProperty name/editor pairs. If specified for a field name, the custom editor will be used instead of the standard textfield.
-
customRenderers ObjectProperty name/renderer pairs. If specified for a field name, the custom renderer will be used instead of the type specific one.
-
dateFormat StringDate format. Default is the value ofExt.form.DateField.prototype.format.
-
fieldVisibility ObjectProperty name/visibility name pairs. Optional. If specified, only columns with a value of true will be initially shown.
-
ignoreFields Arrayof field names from the store’s records that should not be displayed in the grid.
-
includeFields Arrayof field names from the store’s records that should be displayed in the grid. All other fields will be ignored.
-
layer OpenLayers.Layer.VectorThe vector layer that will be synchronized with the layer store. If themapconfig property is provided, this value will be ignored.
-
map OpenLayers.MapIf provided, a layer with the features from this grid will be added to the map.
-
propertyNames ObjectProperty name/display name pairs. If specified, the display name will be shown as column header instead of the property name.
-
schema GeoExt.data.AttributeStoreOptional schema for the grid. If provided, appropriate field renderers (e.g. for date or boolean fields) will be used.
-
timeFormat StringTime format. Default is the value ofExt.form.TimeField.prototype.format.
Public Methods¶
Public methods in addition to those listed for Ext.grid.GridPanel.
-
FeatureGrid.getColumns()¶ Parameters: store – GeoExt.data.FeatureStoreReturns: ArrayGets the configuration for the column model.
-
FeatureGrid.initComponent()¶ Initializes the FeatureGrid.
-
FeatureGrid.setStore()¶ Parameters: - store –
GeoExt.data.FeatureStore - schema –
GeoExt.data.AttributeStoreOptional schema to determine appropriate field renderers for the grid.
Sets the store for this grid, reconfiguring the column model
- store –