ddlRoutExt.js
1.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
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 // указание на то что нужно вывести листалку
//});