-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.windowsgrid
More file actions
142 lines (69 loc) · 2.21 KB
/
.windowsgrid
File metadata and controls
142 lines (69 loc) · 2.21 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
CSS
--------------
.ig-windows-style .a-GV-table .a-GV-cell,
.ig-windows-style .a-GV-table .a-GV-controlBreakHeader {
border-color: transparent;
}
.ig-windows-style .a-GV-w-frozen .a-GV-table {
border-right: none;
}
.ig-windows-style .a-GV-table tr.is-hover .a-GV-cell,
.ig-windows-style .a-GV-table tr.is-hover.is-selected .a-GV-cell {
background-color: #f2f6ff;
}
.ig-windows-style .a-GV-table tr.is-selected .a-GV-cell,
.ig-windows-style .a-GV-table tr.is-hover.is-selected .a-GV-cell {
background-color: #dbe8ff;
}
.ig-windows-style .a-GV-hdr {
background-color: #fcfcfc;
}
.a-IG-contentContainer {
margin-top: 0;
}
.ig-windows-style .u-selector {
box-shadow: none;
border: 1px transparent;
}
.ig-windows-style .a-GV-hdr tr .u-selector,
.ig-windows-style tr.is-selected .u-selector,
.ig-windows-style tr.is-hover .u-selector {
box-shadow: 0 1px 1px rgba(0,0,0,.05) inset;
border: 1px solid #404040;
}
JavaScript Initialization Code
--------------
function(config) {
config.defaultGridViewOptions = {
// this was mentioned in my blog: http://hardlikesoftware.com/weblog/2017/01/24/how-to-hack-apex-interactive-grid-part-2/#more-537
// relies on internal detail of menu id generation but no other way to get this
contextMenuId: "emp_ig_selection_actions_menu",
};
// Logically want to do this: config.views.grid.features.stretchColumns = false;
// But the server may not generate the views, grid, or features objects depending on what declrative options are selected.
// So must check for and add if needed each one. Seems like there should be an easier way :-(
var o = config;
"views.grid.features".split(".").forEach(function(p) {
if ( !o[p] ) {
o[p] = {};
}
o = o[p];
});
o.stretchColumns = false;
/* or you could do it this way
if (!config.views) {
config.views = {};
}
if (!config.views.grid) {
config.views.grid = {};
}
if (!config.views.grid.features) {
config.views.grid.features = {};
}
config.views.grid.features.stretchColumns = false;
*/
return config;
}
Static ID
--------------
emp