PingUtil.js
1.09 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
Ext.define('App.view.PingUtil', {
extend : 'Ext.form.Panel',
xtype : 'mvvm-PingUtilView',
requires : [
'App.view.PingUtilViewModel'
],
frame : true,
padding : 10,
bind : {
// reference : 'App.model.MainConfig',
// title : '{rec.title}'
},
viewModel: {
type: 'pingutilform' // references DetailViewModel
},
items : [
{
xtype : 'textfield',
bind : '{rec.host}',
fieldLabel : 'HOST',
disable:true,
margin:'5 5 10 3'
},
{
xtype : 'button',
text : 'PING',
itemId : 'SaveRecord'
},
{
bind : '{rec.result}',
fieldLabel : 'РЕЗУЛЬТАТ',
margin:'5 5 10 3',
xtype : 'textareafield',
grow : true,
preventScrollbars: false,
width:700,
height:200
},
]
});