ddlRoutExt.js 1.58 KB

Ext.define('App.view.ddlRoutExt', {
   extend: 'Ext.form.ComboBox',
   queryMode: 'remote',
   store: 'SubscribersStore',
   alias: 'widget.ddlroutext',
   action: 'selectrouteext',
   displayField: 'Name',
   valueField: 'Id',
   labelWidth: 120,
   width: 400,
   style: 'margin-left:10px; ',
   fieldLabel: 'Населенный пункт:'
   //pageSize: true, // указание на то что нужно вывести листалку

    // Template for the dropdown menu.
    // Note the use of "x-boundlist-item" class,
    // this is required to make the items selectable.
 //   tpl: Ext.create('Ext.XTemplate',
 //       '<tpl for=".">',
  //          '<div class="x-boundlist-item"><div>{title}</div>',
   //     '</tpl>'
   // ),
    // template for the content inside text field
  //  displayTpl: Ext.create('Ext.XTemplate',
     //   '<tpl for=".">',
   //         '{title}',
     //  '</tpl>'
 //   )
});



//Ext.define('App.view.logevent.ddlagk', {
 //   extend: 'Ext.form.ComboBox',
  //  queryMode: 'remote',
  //  store:'ExtAgks',
   // alias: 'widget.ddlagk',
   // name: 'ddlAgk',
   // action: 'selectagk',
   // displayField: 'title',
   // valueField: 'id',
   // labelWidth: 70,
   // width: 200,
   // style: 'margin-left:10px; ',
   //fieldLabel: 'Выбр АГК:',
  //  typeAhead: true,
   // hideTrigger: true,
   // minChars: 2, //    поиск, если набрано 2 символа 
  //  hideTrigger: true,
  //  emptyText: 'Введите текст',
  //  pageSize: true // указание на то что нужно вывести листалку


//});