CSS Styles
RealGridJS 1.1.17.2245 버전부터 Popup, DropDown, Date 에디터에서 CSS 스타일을 적용할 수 있습니다. ContextMenu는 PopupMenu와 CSS 스타일을 공유 합니다. 그리드에서 마우스 오른쪽 버튼을 클릭하여 ContextMenu 스타일을 확인하세요.
(Only JS Support)
필터를 제외한 각 에디터에 CSS 스타일을 사용하기 위해서는
속성값에 true를 설정해야 합니다.
에디터 모두 CSS Style을 적용 한다면 useCssStyle 속성값만 true로 설정해도 됩니다.
필터의 CSS 스타일 적용여부는 FilteringOptions.selector.useCssStyle 에서 설정 합니다.
필터의 경우 editorOptions.useCssStyle 의 영향을 받지 않습니다.
※ CSS 스타일은 각 객체가 생성된 이후에는 변경할 수 없습니다.(동적으로 변경할 수 없습니다.)
1
2
3
4
5
6
7
8
9
10
11
//각 Editor에 CSS 스타일 적용 여부 설정
gridView.setEditorOptions({
//useCssStyle: true, //모든 에디터에 CSS를 적용할 경우 사용
useCssStyleDropDownList: true, //dropDown
useCssStyleDatePicker: true, //달력
useCssStylePopupMenu: true, //popupMenu
useCssStyleMultiCheck: true //multiCheck
});
// 필터에 CSS 스타일 적용 여부 설정
gridView.setFilteringOptions({selector: {useCssStyle: true}});
버튼 클릭 시 progressBar를 표시합니다.
1
2
3
4
5
6
//showProgress 함수 실행 전 적용
//progressBar에 CSS 스타일 적용 여부
gridView.setDisplayOptions({useCssStyleProgress:true});
gridView.setProgress(min, max, position, "progress Message");
gridView.showProgress();
1
gridView.closeProgress();
아래는 CSS Styles 데모에서 사용된 CSS 속성들입니다.
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
<style type="text/css">
/* */
/* Progress */
/* */
.rg-progress {
background-color: rgba(0, 111, 245, 0.05);
border: 1px solid #ddd;
}
.rg-progress-bar {
background : linear-gradient(#aaa, #ccc);
border : 1px solid #333;
}
.rg-progress-progress {
background : linear-gradient(#fff, #ddd);
border-right : 1px solid #333;
}
.rg-progress-message {
font-size : 11px;
font-family : Tahoma;
font-weight : bold;
}
/* */
/* Filter */
/* */
.rg-filterselector {
background : rgb(233, 233, 233);
border :1px solid rgb(200, 200, 200);
box-shadow :rgba(0, 0, 0, 0.8) 1px 2px 5px;
font-family :"나눔고딕코딩";
font-style :normal;
font-variant :normal;
font-weight :normal;
font-size :10pt;
padding :4px;
}
.rg-filter-actions {
}
.rg-filter-action-item {
}
.rg-filter-action-item:hover {
text-decoration:underline;
}
.rg-filter-action-check {
}
.rg-filter-action-label {
}
.rg-filter-all {
background-color : rgba(45, 164, 164, 1);
color : #E0E0E0;
}
.rg-filter-all-check {
}
.rg-filter-all-label {
}
.rg-filter-all-hr {
}
.rg-filter-items {
}
.rg-filter-item {
color: white;
background-color: #151500;
}
.rg-filter-item:hover {
text-decoration:underline;
}
.rg-filter-item-check {
}
.rg-filter-item-label {
}
/* */
/* MultiCheck */
/* */
.rg-filterselector {
background : rgb(233, 233, 233);
border :1px solid rgb(200, 200, 200);
box-shadow :rgba(0, 0, 0, 0.8) 1px 2px 5px;
font-family :"나눔고딕코딩";
font-style :normal;
font-variant :normal;
font-weight :normal;
font-size :10pt;
padding :4px;
}
.rg-filter-actions {
}
.rg-filter-action-item {
}
.rg-filter-action-item:hover {
text-decoration:underline;
}
.rg-filter-action-check {
}
.rg-filter-action-label {
}
.rg-filter-all {
background-color : rgba(45, 164, 164, 1);
color : #E0E0E0;
}
.rg-filter-all-check {
}
.rg-filter-all-label {
}
.rg-filter-all-hr {
}
.rg-filter-items {
}
.rg-filter-item {
color: white;
background-color: #151500;
}
.rg-filter-item:hover {
text-decoration:underline;
}
.rg-filter-item-check {
}
.rg-filter-item-label {
}
/* */
/* MultiCheck */
/* */
.rg-multicheck {
background: #fff;
border: 1px solid rgb(50, 50, 50);
box-shadow: rgba(0, 0, 0, 0.8) 1px 2px 5px;
font-family: 나눔고딕코딩;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 12pt;
padding: 0px;
margin: 0px;
}
.rg-multicheck-button {
text-align: center;
}
.rg-multicheck-accept {
border: 1px solid #0a3c59;
border-radius: 3px;
color: #06426c;
border-width: 1px;
}
.rg-multicheck-cancel {
border: 1px solid #0a3c59;
border-radius: 3px;
color: #06426c;
border-width: 1px;
}
.rg-multicheck-accept:hover {
background-color: #888
}
.rg-multicheck-cancel:hover {
background-color: #888
}
.rg-multicheck-select {
background:#40ff0b;
color:#ffffff;
}
.rg-multicheck-list {
}
.rg-multicheck-item {
background:none;
color:none;
}
.rg-multicheck-item:hover {
background:rgba(0, 0, 255, 0.2);
color:none;
}
.rg-multicheck-selectitem {
background:rgba(0, 0, 255, 0.2);
color:#000;
}.rg-multicheck {
background: #fff;
border: 1px solid rgb(50, 50, 50);
box-shadow: rgba(0, 0, 0, 0.8) 1px 2px 5px;
font-family: 나눔고딕코딩;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 12pt;
padding: 0px;
margin: 0px;
}
.rg-multicheck-button {
text-align: center;
}
.rg-multicheck-accept {
border: 1px solid #0a3c59;
border-radius: 3px;
color: #06426c;
border-width: 1px;
}
.rg-multicheck-cancel {
border: 1px solid #0a3c59;
border-radius: 3px;
color: #06426c;
border-width: 1px;
}
.rg-multicheck-accept:hover {
background-color: #888
}
.rg-multicheck-cancel:hover {
background-color: #888
}
.rg-multicheck-select {
background:#40ff0b;
color:#ffffff;
}
.rg-multicheck-list {
}
.rg-multicheck-item {
background:none;
color:none;
}
.rg-multicheck-item:hover {
background:rgba(0, 0, 255, 0.2);
color:none;
}
.rg-multicheck-selectitem {
background:rgba(0, 0, 255, 0.2);
color:#000;
}
/* */
/* Popup */
/* */
.rg-popup-menu {
background: #ffeeb6;
border: 1px solid rgb(200, 200, 200);
box-shadow: rgba(0, 0, 0, 0.8) 1px 2px 5px;
font-family: 나눔고딕코딩;
font-style: normal;
font-variant: normal;
font-weight: normal;
font-size: 10pt;
padding: 4px;
margin: 0px;
}
.rg-popup-item {
padding-top: 2px;
padding-bottom: 2px;
height: 20px;
cursor: pointer;
}
.rg-popup-item:hover {
background-color: #ffd8d8;
}
.rg-popup-separator-hr {
height: 1px;
border: 0px;
margin: 2px;
color: #777;
background-color: #777;
}
.rg-popup-expander {
background-image: url("/resource/image/icon/menu_expander.png");
background-repeat: no-repeat;
background-position: center center;
}
.rg-popup-check {
/*
background-image:url("/resource/image/icon/menu_uncheck.png");
background-repeat : no-repeat;
background-position : center center;
*/
}
.rg-popup-check-checked {
background-image: url("/resource/image/icon/menu_check.png");
background-repeat: no-repeat;
background-position: center center;
}
.rg-popup-radio {
/*
background-image:url("/resource/image/icon/menu_unradio.png");
background-repeat : no-repeat;
background-position : center center;
*/
}
.rg-popup-radio-checked {
background-image: url("/resource/image/icon/menu_radio.png");
background-repeat: no-repeat;
background-position: center center;
}
.rg-popup-group1 {
background: #ffd800;
}
/* */
/* date */
/* */
.rg-calendar {
font-family: "나눔고딕코딩";
font-size: 12px;
background: #fff;
border: 1px solid rgba(50, 50, 50, 1);
box-shadow: rgba(0, 0, 0, 0.8) 1px 2px 5px;
}
.rg-cal-header {
height: 20px;
}
.rg-cal-year {
cursor: default;
top: 2px;
}
.rg-cal-month {
cursor: pointer;
top: 2px;
}
.rg-cal-prev-month {
background-image: url("/resource/image/icon/cal_prev.png");
width: 20px;
height: 20px;
}
.rg-cal-prev-month:hover {
background-image: url("/resource/image/icon/cal_prev_hover.png");
}
.rg-cal-prev-month:active {
background-image: url("/resource/image/icon/cal_prev_active.png");
}
.rg-cal-next-month {
background-image: url("/resource/image/icon/cal_next.png");
width: 20px;
height: 20px;
}
.rg-cal-next-month:hover {
background-image: url("/resource/image/icon/cal_next_hover.png");
}
.rg-cal-next-month:active {
background-image: url("/resource/image/icon/cal_next_active.png");
}
.rg-cal-today-button {
font-size: 12px;
font-family: "나눔고딕코딩";
border: 1px solid transparent;
border-radius: 3px;
cursor: pointer;
}
.rg-cal-today-button:hover {
border: 1px solid #aaa;
background-color: #fff;
text-decoration: underline;
}
.rg-cal-today-button:active {
}
.rg-cal-next-year {
background-image: url("/resource/image/icon/cal_up.png");
}
.rg-cal-next-year:hover {
background-image: url("/resource/image/icon/cal_up_hover.png");
}
.rg-cal-next-year:active {
background-image: url("/resource/image/icon/cal_up_active.png");
}
.rg-cal-prev-year {
background-image: url("/resource/image/icon/cal_down.png");
}
.rg-cal-prev-year:hover {
background-image: url("/resource/image/icon/cal_down_hover.png");
}
.rg-cal-prev-year:active {
background-image: url("/resource/image/icon/cal_down_active.png");
}
.rg-cal-weeks {
color: black;
font-size: 12px;
font-family: "나눔고딕코딩";
cursor: default;
}
.rg-cal-week-sun {
color: red;
}
.rg-cal-week-sat {
color: blue;
}
.rg-cal-days {
font-family: "나눔고딕코딩";
font-size: 12px;
text-align: center;
}
.rg-cal-day {
cursor: pointer;
background: #f5f5f5;
border: 1px solid #eee;
width: 30px;
height: 30px;
border-radius: 7px;
font-family: "나눔고딕코딩";
font-size: 12px;
}
.rg-cal-day:hover {
background: #55FFf5;
color: red;
border: 1px solid #eee;
}
.rg-cal-prev-day {
color: #ccc;
border: 1px solid #fff;
}
.rg-cal-next-day {
color: #ccc;
border: 1px solid #fff;
}
.rg-cal-today {
background: #d5d5d5;
}
.rg-cal-focusday {
background: rgba(255, 255, 0, 0.3);
border: 1px solid #aaa;
color: #333;
}
.rg-cal-month-picker {
margin: 0px;
cursor: pointer;
background: #fff;
border: 1px solid rgba(50, 50, 50, 0.5);
box-shadow: rgba(0, 0, 0, 0.5) 1px 2px 5px;
font-family: "나눔고딕코딩";
font-size: 12px;
font-style: normal;
font-variant: normal;
font-weight: normal;
}
.rg-cal-month-picker-month {
padding: 1px 4px 1px 4px;
width: 20px;
height: 20px;
border-radius: 7px;
text-align: center;
}
.rg-cal-month-picker-month:hover {
background: #e8e8e8;
}
/* */
/* dropDown */
/* */
.rg-dropdownlist {
background: #fff;
font-family: 나눔고딕코딩;
border: 1px solid rgb(50, 50, 50);
box-shadow: rgba(0, 0, 0, 0.8) 1px 2px 5px;
font-size: 10pt;
padding: 0px;
margin: 0px;
}
.rg-dropdown-select {
background: #fffa00;
margin: 2px;
}
.rg-dropdown-item {
margin: 2px;
}
.rg-dropdown-item:hover {
background: #88ff88;
}
</style>