Toolbar.js
1.74 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
66
67
68
69
70
/**
* @class SimpleTasks.view.Toolbar
* @extends Ext.toolbar.Toolbar
*/
Ext.define('SimpleTasks.view.Toolbar', {
extend: 'Ext.toolbar.Toolbar',
xtype: 'tasksToolbar',
items: [
{
text: 'New',
iconCls: 'tasks-new',
menu: {
items: [
{
text: 'New Task',
iconCls: 'tasks-new'
},
{
text: 'New List',
iconCls: 'tasks-new-list'
},
{
text: 'New Folder',
iconCls: 'tasks-new-folder'
}
]
}
},
{
iconCls: 'tasks-delete-task',
id: 'delete-task-btn',
disabled: true,
tooltip: 'Delete Task'
},
{
iconCls: 'tasks-mark-complete',
id: 'mark-complete-btn',
disabled: true,
tooltip: 'Mark Complete'
},
{
iconCls: 'tasks-mark-active',
id: 'mark-active-btn',
disabled: true,
tooltip: 'Mark Active'
},
'->',
{
iconCls: 'tasks-show-all',
id: 'show-all-btn',
tooltip: 'All Tasks',
toggleGroup: 'status'
},
{
iconCls: 'tasks-show-active',
id: 'show-active-btn',
tooltip: 'Active Tasks',
toggleGroup: 'status'
},
{
iconCls: 'tasks-show-complete',
id: 'show-complete-btn',
tooltip: 'Completed Tasks',
toggleGroup: 'status'
}
]
});