Ext.ns('EMBrowser');

EMBrowser.CBcountry = Ext.extend(Ext.form.ComboBox,{
   //frame:true,
  store:new Ext.data.JsonStore({
        //fields:['cid', 'country'],
        fields:['country_id', 'country_name'],
        autoLoad: true,
        url: '/process/EMBrowser/database/country.php'
      })
  ,displayField:'country_name'
  ,valueField:'country_id'
  ,mode:'local'
  ,forceSelection: true
  ,triggerAction: 'all'
  ,editable: false
  ,lazyRender: true
  ,emptyText:'Selectionnez un pays...'
  ,initComponent:function() {
    var config = {
        
    }; // eo config object
    
    Ext.apply(this, Ext.apply(this.initialConfig, config));
    EMBrowser.CBcountry.superclass.initComponent.apply(this, arguments);
  } // end of function initComponent
  ,onRender:function() {
    EMBrowser.CBcountry.superclass.onRender.apply(this, arguments);
  } // eo function onRender

});

Ext.reg('EMBrowserCBcountry', EMBrowser.CBcountry);

