mxp.widgets.GeoStoreCategoryManager - geosolutions-it/MapStore GitHub Wiki
The GeoStoreCategoryManager
is a widget that can be used in MapStore Manager to display/edit/delete GeoStore Resources of a particular Category.
A tipical usage of this tool is to wrap it in a plugin:
addOutput: function(config) {
// ...
Ext.apply(this.outputConfig,{
xtype:'mxp_geostore_category_manger',
category:this.category,
iconCls: this.iconCls,
geoStoreBase:this.target.config.geoStoreBase,
auth:this.auth,
layout: 'border',
itemId:'GeoCollect',
closable: true,
closeAction: 'close',
header: false,
deferredReneder:false,
viewConfig: {
forceFit: true
},
title: this.buttonText
});
//...
}
Configuration
tpl
: the template for the GeoStore Resource data viewresourceEditor
: The Pluggable Resource Editor. If null the default one (a form with a text area) is used This object needs 3 methods:getResourceData()
: returns the string of the resourceloadResourceData(resource)
: load the resource in the component (typically a form)canCommit()
: return true if the resource edited is valid (typically check the internal form validity)