Skip to content
This repository has been archived by the owner on May 6, 2021. It is now read-only.

mxp.widgets.GeoStoreCategoryManager

Lorenzo Natali edited this page Jul 13, 2014 · 1 revision

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 view
  • resourceEditor: 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 resource
    • loadResourceData(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)
Clone this wiki locally