View difference between Paste ID: yv08tsYk and 56FqVUTG
SHOW: | | - or go back to the newest paste.
1
Ext.define('MyApp.view.TimerEdit', {
2
    extend: 'Ext.Container',
3
    alias: 'widget.timerEdit',
4
    id: 'timerEdit',
5
    config: {
6
        fullscreen: false,
7
        scrollable: false,
8
 	   	draggable: false,
9
 	   	scroll: false,
10
        left: 0,
11
        top: 0,
12
        tplWriteMode: 'insertAfter',
13
        hideOnMaskTap: true,
14
        layout: {
15
            type: 'fit'
16
        },
17
        modal: true,
18
        defaults: {
19
            margin: '0 0 5 0',
20
            labelWidth: '40%',
21
        },
22
        items: [
23
            {
24
            	xtype: 'panel',
25
            	items: [ 
26
            		{
27
                        xtype: 'picker',
28
                        label: 'Stunden',
29
                        title: 'Einschaltzeit',
30
                        id:'startTimeHours',
31
                        maxValue: 23,
32
                        minValue: 0,
33
                        stepValue: 1,
34
                        cycle: true,
35
                        groupButtons: false,
36
                        slots: [
37
                        	{
38
	                        	xtype: 'pickerslot',
39
	                        	name: 'Stunden',
40
	                        	title: 'Stunden',
41
	                        	data:[
42
	                        		{
43
	                        			text: '1',
44
	                        			value: 1
45
	                        		}
46
	                        	]
47
	                        }
48
                        ]        
49
		            },
50
{
51
                        xtype: 'picker',
52
                        label: 'Stunden',
53
                        title: 'Einschaltzeit',
54
                        maxValue: 23,
55
                        minValue: 0,
56
                        stepValue: 1,
57
                        cycle: true,
58
                        groupButtons: false,
59
                        slots: [
60
                        	{
61
	                        	xtype: 'pickerslot',
62
	                        	name: 'Stunden',
63
	                        	title: 'Stunden',
64
	                        	data:[
65
	                        		{
66
	                        			text: '1',
67
	                        			value: 1
68
	                        		},
69
	                        		{
70
	                        			text: '2',
71
	                        			value: 2
72
	                        		}
73
	                        	]
74
	                        }
75
                        ]        
76
		            },
77
		            {
78
		            	xtype: 'container',
79
		            	layout: {
80
		                    pack: 'center',
81
		                    type: 'hbox'
82
		                },
83
		            	items:[
84
		            		{
85
				            	xtype: 'button',
86
				            	id: 'MoEdit',
87
				            	text:'Mo'
88
		            		},
89
		            		{
90
				            	xtype: 'button',
91
				            	id: 'DiEdit',
92
				            	text:'Di'
93
		            		},
94
		            		{
95
				            	xtype: 'button',
96
				            	id: 'MiEdit',
97
				            	text:'Mi'
98
		            		},
99
		            		{
100
				            	xtype: 'button',
101
				            	id: 'DoEdit',
102
				            	text:'Do'
103
		            		},
104
		            		{
105
				            	xtype: 'button',
106
				            	id: 'FrEdit',
107
				            	text:'Fr'
108
		            		},
109
		            		{
110
				            	xtype: 'button',
111
				            	id: 'SaEdit',
112
				            	text:'Sa'
113
		            		}             		             		            		
114
		            	]
115
		            },{
116
		            	xtype: 'button',
117
		            	text: '&uumlbernehmen',
118
		            	itemId: 'uebernehmen'
119
		            }
120
		            	]
121
		            }
122
        ]
123
    }
124
125
});