-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1369 lines (738 loc) · 70.7 KB
/
index.html
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
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!DOCTYPE html>
<html lang="ko">
<head><meta name="generator" content="Hexo 3.9.0">
<meta charset="utf-8">
<title>Vue Search</title>
<meta name="keywords" content="Javascript">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
<meta name="description" content="For Memory">
<meta name="keywords" content="Javascript">
<meta property="og:type" content="website">
<meta property="og:title" content="Vue Search">
<meta property="og:url" content="https://vue-guide.github.io/index.html">
<meta property="og:site_name" content="Vue Search">
<meta property="og:description" content="For Memory">
<meta property="og:locale" content="ko">
<meta name="twitter:card" content="summary">
<meta name="twitter:title" content="Vue Search">
<meta name="twitter:description" content="For Memory">
<link rel="alternate" href="/atom.xml" title="Vue Search" type="application/atom+xml">
<link rel="icon" href="/favicon.ico">
<link rel="stylesheet" href="/libs/font-awesome/css/font-awesome.min.css">
<link rel="stylesheet" href="/libs/open-sans/styles.css">
<link rel="stylesheet" href="/libs/source-code-pro/styles.css">
<link rel="stylesheet" href="/css/style.css">
<script src="/libs/jquery/2.1.3/jquery.min.js"></script>
<script src="/libs/jquery/plugins/cookie/1.4.1/jquery.cookie.js"></script>
<link rel="stylesheet" href="/libs/lightgallery/css/lightgallery.min.css">
<link rel="stylesheet" href="/libs/justified-gallery/justifiedGallery.min.css">
<script async src="//busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
</head>
</html>
<body>
<div id="container">
<header id="header">
<div id="header-main" class="header-inner">
<div class="outer">
<a href="/" id="logo">
<i class="logo"></i>
<span class="site-title">Vue Search</span>
</a>
<nav id="main-nav">
<a class="main-nav-link" href="/">Main</a>
<a class="main-nav-link" href="/archives">TimeLine</a>
<a class="main-nav-link" href="/categories">Category</a>
<a class="main-nav-link" href="/tags">Tag</a>
<a class="main-nav-link" href="/about">About</a>
</nav>
<div id="search-form-wrap">
<form class="search-form">
<input type="text" class="ins-search-input search-form-input" placeholder="검색" />
<button type="submit" class="search-form-submit"></button>
</form>
<div class="ins-search">
<div class="ins-search-mask"></div>
<div class="ins-search-container">
<div class="ins-input-wrapper">
<input type="text" class="ins-search-input" placeholder="Type something..." />
<span class="ins-close ins-selectable"><i class="fa fa-times-circle"></i></span>
</div>
<div class="ins-section-wrapper">
<div class="ins-section-container"></div>
</div>
</div>
</div>
<script>
(function (window) {
var INSIGHT_CONFIG = {
TRANSLATION: {
POSTS: '포스트',
PAGES: 'Pages',
CATEGORIES: '카테고리',
TAGS: '태그',
UNTITLED: '(Untitled)',
},
ROOT_URL: '/',
CONTENT_URL: '/content.json',
};
window.INSIGHT_CONFIG = INSIGHT_CONFIG;
})(window);
</script>
<script src="/js/insight.js"></script>
</div>
</div>
</div>
<div id="main-nav-mobile" class="header-sub header-inner">
<table class="menu outer">
<tr>
<td><a class="main-nav-link" href="/">Main</a></td>
<td><a class="main-nav-link" href="/archives">TimeLine</a></td>
<td><a class="main-nav-link" href="/categories">Category</a></td>
<td><a class="main-nav-link" href="/tags">Tag</a></td>
<td><a class="main-nav-link" href="/about">About</a></td>
<td>
<div class="search-form">
<input type="text" class="ins-search-input search-form-input" placeholder="검색" />
</div>
</td>
</tr>
</table>
</div>
</header>
<div class="outer">
<aside id="sidebar">
<div class="widget-wrap" id='categories'>
<h3 class="widget-title">
<span>카테고리</span>
<a id='allExpand' href="#">
<i class="fa fa-angle-double-down fa-2x"></i>
</a>
</h3>
<ul class="unstyled" id="tree" >
<li class="directory">
<a href="#" data-role="directory">
<i class="fa fa-folder"></i>
Vue-good-table
</a>
<ul class="unstyled" id="tree" > <li class="file"><a href="/wiki/vue-good-table/README/">Getting Started</a></li> <li class="file"><a href="/wiki/vue-good-table/configuration/">Table Options</a></li> <li class="file"><a href="/wiki/vue-good-table/table-events/">Table Events</a></li> <li class="file"><a href="/wiki/vue-good-table/search-options/">Search Options</a></li> <li class="file"><a href="/wiki/vue-good-table/sort-options/">Sort Options</a></li> <li class="file"><a href="/wiki/vue-good-table/pagination-options/">Pagination Options</a></li> <li class="file"><a href="/wiki/vue-good-table/column-options/">Column Options</a></li> <li class="file"><a href="/wiki/vue-good-table/column-filter-options/">Column Filter Options</a></li> <li class="file"><a href="/wiki/vue-good-table/advanced/">Customizations</a></li> <li class="file"><a href="/wiki/vue-good-table/checkbox-table/">Checkbox Table</a></li> <li class="file"><a href="/wiki/vue-good-table/grouped-table/">Grouped Table</a></li> <li class="file"><a href="/wiki/vue-good-table/remote-workflow/">Server Side Table</a></li> <li class="file"><a href="/wiki/vue-good-table/style-configuration/">Themes</a></li> <li class="file"><a href="/wiki/vue-good-table/style-classes/">Style Classes</a></li> <li class="file"><a href="/wiki/vue-good-table/sass/">Sass</a></li> </ul>
</li>
<li class="directory">
<a href="#" data-role="directory">
<i class="fa fa-folder"></i>
Vue.js
</a>
<ul class="unstyled" id="tree" > <li class="file"><a href="/wiki/vue/index/">시작하기</a></li> <li class="file"><a href="/wiki/vue/installation/">설치방법</a></li> <li class="file"><a href="/wiki/vue/instance/">Vue 인스턴스</a></li> <li class="file"><a href="/wiki/vue/syntax/">템플릿 문법</a></li> <li class="file"><a href="/wiki/vue/computed/">computed와 watch</a></li> <li class="file"><a href="/wiki/vue/class-and-style/">클래스와 스타일 바인딩</a></li> <li class="file"><a href="/wiki/vue/conditional/">조건부 렌더링</a></li> <li class="file"><a href="/wiki/vue/list/">리스트 렌더링</a></li> <li class="file"><a href="/wiki/vue/events/">이벤트 핸들링</a></li> <li class="file"><a href="/wiki/vue/forms/">폼 입력 바인딩</a></li> <li class="file"><a href="/wiki/vue/components/">컴포넌트</a></li> <li class="file"><a href="/wiki/vue/transitions/">진입/진출 그리고 리스트 트랜지션</a></li> <li class="file"><a href="/wiki/vue/components-registration/">컴포넌트 등록</a></li> <li class="file"><a href="/wiki/vue/transitioning-state/">상태 트랜지션</a></li> <li class="file"><a href="/wiki/vue/components-props/">Props</a></li> <li class="file"><a href="/wiki/vue/components-custom-events/">커스텀 이벤트</a></li> <li class="file"><a href="/wiki/vue/components-slots/">슬롯(Slots)</a></li> <li class="file"><a href="/wiki/vue/components-edge-cases/">Handling Edge Cases</a></li> <li class="file"><a href="/wiki/vue/style-guide/">Style Guide</a></li> <li class="file"><a href="/wiki/vue/comparison/">다른 프레임워크와의 비교</a></li> <li class="file"><a href="/wiki/vue/mixins/">믹스인</a></li> <li class="file"><a href="/wiki/vue/custom-directive/">사용자 지정 디렉티브</a></li> <li class="file"><a href="/wiki/vue/render-function/">Render Functions & JSX</a></li> <li class="file"><a href="/wiki/vue/plugins/">플러그인</a></li> <li class="file"><a href="/wiki/vue/filters/">필터</a></li> <li class="file"><a href="/wiki/vue/single-file-components/">싱글 파일 컴포넌트</a></li> <li class="file"><a href="/wiki/vue/typescript/">TypeScript 지원</a></li> <li class="file"><a href="/wiki/vue/unit-testing/">단위 테스팅</a></li> <li class="file"><a href="/wiki/vue/deployment/">프로덕션 배포 팁</a></li> <li class="file"><a href="/wiki/vue/routing/">라우팅</a></li> <li class="file"><a href="/wiki/vue/state-management/">상태 관리</a></li> <li class="file"><a href="/wiki/vue/ssr/">서버사이드 렌더링</a></li> <li class="file"><a href="/wiki/vue/security/">Security</a></li> <li class="file"><a href="/wiki/vue/reactivity/">반응형에 대해 깊이 알아보기</a></li> <li class="file"><a href="/wiki/vue/migration/">Vue 1.x에서 마이그레이션</a></li> <li class="file"><a href="/wiki/vue/migration-vue-router/">Vue Router 0.7.x으로 부터 마이그레이션</a></li> <li class="file"><a href="/wiki/vue/migration-vuex/">Vuex 0.6.x에서 1.0로 마이그레이션</a></li> <li class="file"><a href="/wiki/vue/team/">팀 구성원 만나기</a></li> <li class="file"><a href="/wiki/vue/join/">Vue.js 커뮤니티에 참여하세요!</a></li> <li class="file"><a href="/wiki/vue/components-dynamic-async/">동적 & 비동기 컴포넌트</a></li> </ul>
</li>
<li class="directory">
<a href="#" data-role="directory">
<i class="fa fa-folder"></i>
Vuex
</a>
<ul class="unstyled" id="tree" > <li class="file"><a href="/wiki/vuex/intro/">Vuex가 무엇인가요?</a></li> <li class="file"><a href="/wiki/vuex/getting-started/">시작하기</a></li> <li class="file"><a href="/wiki/vuex/hot-reload/">핫 리로딩</a></li> <li class="file"><a href="/wiki/vuex/installation/">설치</a></li> <li class="file"><a href="/wiki/vuex/modules/">모듈</a></li> <li class="file"><a href="/wiki/vuex/mutations/">변이</a></li> <li class="file"><a href="/wiki/vuex/getters/">Getters</a></li> <li class="file"><a href="/wiki/vuex/api/">API 레퍼런스</a></li> <li class="file"><a href="/wiki/vuex/actions/">액션</a></li> <li class="file"><a href="/wiki/vuex/forms/">폼 핸들링</a></li> <li class="file"><a href="/wiki/vuex/plugins/">플러그인</a></li> <li class="file"><a href="/wiki/vuex/state/">상태</a></li> <li class="file"><a href="/wiki/vuex/strict/">Strict 모드</a></li> <li class="file"><a href="/wiki/vuex/structure/">애플리케이션 구조</a></li> <li class="file"><a href="/wiki/vuex/testing/">테스팅</a></li> </ul>
</li>
</ul>
</div>
<script>
$(document).ready(function() {
var iconFolderOpenClass = 'fa-folder-open';
var iconFolderCloseClass = 'fa-folder';
var iconAllExpandClass = 'fa-angle-double-down';
var iconAllPackClass = 'fa-angle-double-up';
// Handle directory-tree expansion:
// 左键单独展开目录
$(document).on('click', '#categories a[data-role="directory"]', function (event) {
event.preventDefault();
var icon = $(this).children('.fa');
var expanded = icon.hasClass(iconFolderOpenClass);
var subtree = $(this).siblings('ul');
icon.removeClass(iconFolderOpenClass).removeClass(iconFolderCloseClass);
if (expanded) {
if (typeof subtree != 'undefined') {
subtree.slideUp({ duration: 100 });
}
icon.addClass(iconFolderCloseClass);
} else {
if (typeof subtree != 'undefined') {
subtree.slideDown({ duration: 100 });
}
icon.addClass(iconFolderOpenClass);
}
});
// 右键展开下属所有目录
$('#categories a[data-role="directory"]').bind("contextmenu", function(event){
event.preventDefault();
var icon = $(this).children('.fa');
var expanded = icon.hasClass(iconFolderOpenClass);
var listNode = $(this).siblings('ul');
var subtrees = $.merge(listNode.find('li ul'), listNode);
var icons = $.merge(listNode.find('.fa'), icon);
icons.removeClass(iconFolderOpenClass).removeClass(iconFolderCloseClass);
if(expanded) {
subtrees.slideUp({ duration: 100 });
icons.addClass(iconFolderCloseClass);
} else {
subtrees.slideDown({ duration: 100 });
icons.addClass(iconFolderOpenClass);
}
})
// 展开关闭所有目录按钮
$(document).on('click', '#allExpand', function (event) {
event.preventDefault();
var icon = $(this).children('.fa');
var expanded = icon.hasClass(iconAllExpandClass);
icon.removeClass(iconAllExpandClass).removeClass(iconAllPackClass);
if(expanded) {
$('#sidebar .fa.fa-folder').removeClass('fa-folder').addClass('fa-folder-open')
$('#categories li ul').slideDown({ duration: 100 });
icon.addClass(iconAllPackClass);
} else {
$('#sidebar .fa.fa-folder-open').removeClass('fa-folder-open').addClass('fa-folder')
$('#categories li ul').slideUp({ duration: 100 });
icon.addClass(iconAllExpandClass);
}
});
});
</script>
<div id="toTop" class="fa fa-angle-up"></div>
</aside>
<section id="main">
<article id="post-vue-good-table/sass" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/wiki/vue-good-table/sass/">
<time datetime="2020-03-14T10:04:47.000Z" itemprop="datePublished">2020-03-14</time>
</a>
</div>
<i class="fa fa-bar-chart"></i>
<span id="busuanzi_container_site_pv"><span id="busuanzi_value_page_pv"></span></span>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/raw/writing/source/_posts/vue-good-table/sass.md'> Source </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/edit/writing/source/_posts/vue-good-table/sass.md'> Edit </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/commits/writing/source/_posts/vue-good-table/sass.md'> History </a>
</div>
</div>
<h1 itemprop="name">
<a class="article-title" href="/wiki/vue-good-table/sass/">Sass</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Bug Exist: When start table html, crash main page. -->
<p><h1 id="Sass"><a href="#Sass" class="headerlink" title="Sass"></a>Sass</h1><p>Vue-Good-Table’s styling is written in Sass. The source files are made available as part of the npm dependency.</p>
<p><strong>Vue-Good-Table’s root Sass file:</strong></p>
<figure class="highlight scss"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">@<span class="keyword">import</span> <span class="string">"../node_modules/vue-good-table/src/styles/style.scss"</span>;</span><br></pre></td></tr></table></figure>
<p>Vue-Good-Table has an optional feature to filter a column based on a multi-select dropdown. We use Vue-Select for this feature.</p><p>
</div>
<div class="article-more-link">
<a href="/wiki/vue-good-table/sass/#more">자세히 보기</a>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<article id="post-vue-good-table/style-classes" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/wiki/vue-good-table/style-classes/">
<time datetime="2020-03-13T10:04:47.000Z" itemprop="datePublished">2020-03-13</time>
</a>
</div>
<i class="fa fa-bar-chart"></i>
<span id="busuanzi_container_site_pv"><span id="busuanzi_value_page_pv"></span></span>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/raw/writing/source/_posts/vue-good-table/style-classes.md'> Source </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/edit/writing/source/_posts/vue-good-table/style-classes.md'> Edit </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/commits/writing/source/_posts/vue-good-table/style-classes.md'> History </a>
</div>
</div>
<h1 itemprop="name">
<a class="article-title" href="/wiki/vue-good-table/style-classes/">Style Classes</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Bug Exist: When start table html, crash main page. -->
<p><h1 id="Style-Classes"><a href="#Style-Classes" class="headerlink" title="Style Classes"></a>Style Classes</h1><p>Vue-good-table allows providing your own css classes for the table via <strong>styleClass</strong> option but it also has in-built classes that you can make use of.</p>
<p>::: tip NOTE<br>by default, tables have ‘vgt-table striped bordered’<br>:::</p>
<h2 id="vgt-table"><a href="#vgt-table" class="headerlink" title=".vgt-table"></a>.vgt-table</h2><p>Base class that initializes all the core styles for the table.</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><vue-good-table</span><br><span class="line"> :columns="columns"</span><br><span class="line"> :rows="rows"</span><br><span class="line"> styleClass="vgt-table"></span><br><span class="line"></vue-good-table></span><br></pre></td></tr></table></figure>
<p>
</div>
<div class="article-more-link">
<a href="/wiki/vue-good-table/style-classes/#more">자세히 보기</a>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<article id="post-vue-good-table/style-configuration" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/wiki/vue-good-table/style-configuration/">
<time datetime="2020-03-12T10:04:47.000Z" itemprop="datePublished">2020-03-12</time>
</a>
</div>
<i class="fa fa-bar-chart"></i>
<span id="busuanzi_container_site_pv"><span id="busuanzi_value_page_pv"></span></span>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/raw/writing/source/_posts/vue-good-table/style-configuration.md'> Source </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/edit/writing/source/_posts/vue-good-table/style-configuration.md'> Edit </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/commits/writing/source/_posts/vue-good-table/style-configuration.md'> History </a>
</div>
</div>
<h1 itemprop="name">
<a class="article-title" href="/wiki/vue-good-table/style-configuration/">Themes</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Bug Exist: When start table html, crash main page. -->
<p><h1 id="Themes"><a href="#Themes" class="headerlink" title="Themes"></a>Themes</h1><h2 id="Default"><a href="#Default" class="headerlink" title="Default"></a>Default</h2><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag"><<span class="name">vue-good-table</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:columns</span>=<span class="string">"columns"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:rows</span>=<span class="string">"rows"</span>></span></span><br><span class="line"><span class="tag"></<span class="name">vue-good-table</span>></span></span><br></pre></td></tr></table></figure>
<theme-example>
<h2 id="Black-rhino"><a href="#Black-rhino" class="headerlink" title="Black-rhino"></a>Black-rhino</h2><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag"><<span class="name">vue-good-table</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:columns</span>=<span class="string">"columns"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:rows</span>=<span class="string">"rows"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">theme</span>=<span class="string">"black-rhino"</span>></span></span><br><span class="line"><span class="tag"></<span class="name">vue-good-table</span>></span></span><br></pre></td></tr></table></figure><p>
</div>
<div class="article-more-link">
<a href="/wiki/vue-good-table/style-configuration/#more">자세히 보기</a>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<article id="post-vue-good-table/remote-workflow" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/wiki/vue-good-table/remote-workflow/">
<time datetime="2020-03-11T10:04:47.000Z" itemprop="datePublished">2020-03-11</time>
</a>
</div>
<i class="fa fa-bar-chart"></i>
<span id="busuanzi_container_site_pv"><span id="busuanzi_value_page_pv"></span></span>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/raw/writing/source/_posts/vue-good-table/remote-workflow.md'> Source </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/edit/writing/source/_posts/vue-good-table/remote-workflow.md'> Edit </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/commits/writing/source/_posts/vue-good-table/remote-workflow.md'> History </a>
</div>
</div>
<h1 itemprop="name">
<a class="article-title" href="/wiki/vue-good-table/remote-workflow/">Server Side Table</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Bug Exist: When start table html, crash main page. -->
<p><h1 id="Server-Side-Table"><a href="#Server-Side-Table" class="headerlink" title="Server Side Table"></a>Server Side Table</h1><h2 id="Why-Remote-Mode"><a href="#Why-Remote-Mode" class="headerlink" title="Why Remote Mode?"></a>Why Remote Mode?</h2><p>Vue-good-table’s in-built features like sorting, paging, filtering etc. are all performed client side and therefore are great for most of the use-cases. Sometimes though, we might have <strong>too much data to render all of it at once on the UI</strong>. In such cases, we would want to do things like sorting, paging, filtering on the server side. Fortunately, vue-good-table comes with <code>remote mode</code> to switch from client side to server side. </p>
<p>When remote mode is on, vue-good-table does not perform sorting, paging, filtering etc. on the client side but instead emits events that we can use to then send proper parameters to the back-end. The server then is expected to send the correct rows to display on the UI. </p>
<p>Following is a workflow you can use to get a server powered vue-good-table instance: </p>
<h2 id="Prep-Work"><a href="#Prep-Work" class="headerlink" title="Prep Work"></a>Prep Work</h2><h3 id="What-do-we-send-to-server"><a href="#What-do-we-send-to-server" class="headerlink" title="What do we send to server?"></a>What do we send to server?</h3><p>Before we dive into remote mode, lets agree on what we’re going to be sending to the server. A set of parameters that tells the server exactly what rows I need to get back. Here’s a proposed parameter object to send: </p>
<figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br></pre></td><td class="code"><pre><span class="line">serverParams: {</span><br><span class="line"> <span class="comment">// a map of column filters example: {name: 'john', age: '20'}</span></span><br><span class="line"> columnFilters: {</span><br><span class="line"> },</span><br><span class="line"> sort: [</span><br><span class="line"> {</span><br><span class="line"> field: <span class="string">''</span>, <span class="comment">// example: 'name'</span></span><br><span class="line"> type: <span class="string">''</span> <span class="comment">// 'asc' or 'desc'</span></span><br><span class="line"> }</span><br><span class="line"> ],</span><br><span class="line"></span><br><span class="line"> page: <span class="number">1</span>, <span class="comment">// what page I want to show</span></span><br><span class="line"> perPage: <span class="number">10</span> <span class="comment">// how many items I'm showing per page</span></span><br><span class="line">}</span><br></pre></td></tr></table></figure><p>
</div>
<div class="article-more-link">
<a href="/wiki/vue-good-table/remote-workflow/#more">자세히 보기</a>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<article id="post-vue-good-table/grouped-table" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/wiki/vue-good-table/grouped-table/">
<time datetime="2020-03-10T10:04:47.000Z" itemprop="datePublished">2020-03-10</time>
</a>
</div>
<i class="fa fa-bar-chart"></i>
<span id="busuanzi_container_site_pv"><span id="busuanzi_value_page_pv"></span></span>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/raw/writing/source/_posts/vue-good-table/grouped-table.md'> Source </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/edit/writing/source/_posts/vue-good-table/grouped-table.md'> Edit </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/commits/writing/source/_posts/vue-good-table/grouped-table.md'> History </a>
</div>
</div>
<h1 itemprop="name">
<a class="article-title" href="/wiki/vue-good-table/grouped-table/">Grouped Table</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Bug Exist: When start table html, crash main page. -->
<p><h1 id="Grouped-Table"><a href="#Grouped-Table" class="headerlink" title="Grouped Table"></a>Grouped Table</h1><p>To create grouped rows, you need two things.</p>
<h4 id="1-Add-groupOptions-to-table-component"><a href="#1-Add-groupOptions-to-table-component" class="headerlink" title="1. Add groupOptions to table component"></a>1. Add groupOptions to table component</h4><figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag"><<span class="name">vue-good-table</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:columns</span>=<span class="string">"columns"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:rows</span>=<span class="string">"rows"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:groupOptions</span>=<span class="string">"{</span></span></span><br><span class="line"><span class="tag"><span class="string"> enabled: true</span></span></span><br><span class="line"><span class="tag"><span class="string"> }"</span></span></span><br><span class="line"><span class="tag">></span></span><br><span class="line"><span class="tag"></<span class="name">vue-good-table</span>></span></span><br></pre></td></tr></table></figure>
<h4 id="2-Make-sure-the-rows-are-formatted-correctly-Grouped-rows-need-to-be-nested-within-header-rows-containing-data-rows-in-their-children-property-For-example"><a href="#2-Make-sure-the-rows-are-formatted-correctly-Grouped-rows-need-to-be-nested-within-header-rows-containing-data-rows-in-their-children-property-For-example" class="headerlink" title="2. Make sure the rows are formatted correctly. Grouped rows need to be nested within header rows containing data rows in their children property. For example:"></a>2. Make sure the rows are formatted correctly. Grouped rows need to be nested within header rows containing data rows in their children property. For example:</h4><figure class="highlight js"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br></pre></td><td class="code"><pre><span class="line">rows: [</span><br><span class="line"> {</span><br><span class="line"> mode: <span class="string">"span"</span>, <span class="comment">// span means this header will span all columns</span></span><br><span class="line"> label: <span class="string">"Mammal"</span>, <span class="comment">// this is the label that'll be used for the header</span></span><br><span class="line"> html: <span class="literal">false</span>, <span class="comment">// if this is true, label will be rendered as html</span></span><br><span class="line"> children: [</span><br><span class="line"> { <span class="attr">name</span>: <span class="string">"Elephant"</span>, <span class="attr">diet</span>: <span class="string">"herbivore"</span>, <span class="attr">count</span>: <span class="number">5</span> },</span><br><span class="line"> { <span class="attr">name</span>: <span class="string">"Cat"</span>, <span class="attr">diet</span>: <span class="string">"carnivore"</span>, <span class="attr">count</span>: <span class="number">28</span> }</span><br><span class="line"> ]</span><br><span class="line"> }</span><br><span class="line">];</span><br></pre></td></tr></table></figure>
<p>
</div>
<div class="article-more-link">
<a href="/wiki/vue-good-table/grouped-table/#more">자세히 보기</a>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<article id="post-vue-good-table/checkbox-table" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/wiki/vue-good-table/checkbox-table/">
<time datetime="2020-03-09T10:04:47.000Z" itemprop="datePublished">2020-03-09</time>
</a>
</div>
<i class="fa fa-bar-chart"></i>
<span id="busuanzi_container_site_pv"><span id="busuanzi_value_page_pv"></span></span>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/raw/writing/source/_posts/vue-good-table/checkbox-table.md'> Source </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/edit/writing/source/_posts/vue-good-table/checkbox-table.md'> Edit </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/commits/writing/source/_posts/vue-good-table/checkbox-table.md'> History </a>
</div>
</div>
<h1 itemprop="name">
<a class="article-title" href="/wiki/vue-good-table/checkbox-table/">Checkbox Table</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Bug Exist: When start table html, crash main page. -->
<p><h1 id="Checkbox-Table"><a href="#Checkbox-Table" class="headerlink" title="Checkbox Table"></a>Checkbox Table</h1><p>One of the most common customizations in datatables is selectable rows. Creating a checkbox table with <strong>vue-good-table</strong> is easier than ever.</p>
<h2 id="Configuration"><a href="#Configuration" class="headerlink" title="Configuration"></a>Configuration</h2><p>type: <code>Object</code></p>
<p>Object containing select options</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag"><<span class="name">vue-good-table</span></span></span><br><span class="line"><span class="tag"> @<span class="attr">on-selected-rows-change</span>=<span class="string">"selectionChanged"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:columns</span>=<span class="string">"columns"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:rows</span>=<span class="string">"rows"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:selectOptions</span>=<span class="string">"{</span></span></span><br><span class="line"><span class="tag"><span class="string"> enabled: true,</span></span></span><br><span class="line"><span class="tag"><span class="string"> selectOnCheckboxOnly: true, // only select when checkbox is clicked instead of the row</span></span></span><br><span class="line"><span class="tag"><span class="string"> selectionInfoClass: 'custom-class',</span></span></span><br><span class="line"><span class="tag"><span class="string"> selectionText: 'rows selected',</span></span></span><br><span class="line"><span class="tag"><span class="string"> clearSelectionText: 'clear',</span></span></span><br><span class="line"><span class="tag"><span class="string"> disableSelectInfo: true, // disable the select info panel on top</span></span></span><br><span class="line"><span class="tag"><span class="string"> }"</span>></span></span><br></pre></td></tr></table></figure>
<p>
</div>
<div class="article-more-link">
<a href="/wiki/vue-good-table/checkbox-table/#more">자세히 보기</a>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<article id="post-vue-good-table/advanced" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-tag">
<i class="fa fa-tag"></i>
<a class="tag-link" href="/tags/Vue-good-table/">Vue-good-table</a>
</div>
<div class="article-date">
<i class="fa fa-calendar"></i>
<a href="/wiki/vue-good-table/advanced/">
<time datetime="2020-03-08T10:04:47.000Z" itemprop="datePublished">2020-03-08</time>
</a>
</div>
<i class="fa fa-bar-chart"></i>
<span id="busuanzi_container_site_pv"><span id="busuanzi_value_page_pv"></span></span>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/raw/writing/source/_posts/vue-good-table/advanced.md'> Source </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/edit/writing/source/_posts/vue-good-table/advanced.md'> Edit </a>
</div>
<div class="article-meta-button">
<a href='https://github.com/taeuk-gang/taeuk-gang.github.io/commits/writing/source/_posts/vue-good-table/advanced.md'> History </a>
</div>
</div>
<h1 itemprop="name">
<a class="article-title" href="/wiki/vue-good-table/advanced/">Customizations</a>
</h1>
</header>
<div class="article-entry" itemprop="articleBody">
<!-- Bug Exist: When start table html, crash main page. -->
<p><h1 id="Customizations"><a href="#Customizations" class="headerlink" title="Customizations"></a>Customizations</h1><h2 id="Custom-Row-Template"><a href="#Custom-Row-Template" class="headerlink" title="Custom Row Template"></a>Custom Row Template</h2><p>Sometimes you might want to customize exactly how rows are displayed in a table. Vue-good-table also supports dynamic td templates where you dictate how to display the cells. Example:</p>
<figure class="highlight html"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="tag"><<span class="name">vue-good-table</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:columns</span>=<span class="string">"columns"</span></span></span><br><span class="line"><span class="tag"> <span class="attr">:rows</span>=<span class="string">"rows"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">template</span> <span class="attr">slot</span>=<span class="string">"table-row"</span> <span class="attr">slot-scope</span>=<span class="string">"props"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">v-if</span>=<span class="string">"props.column.field == 'age'"</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">style</span>=<span class="string">"font-weight: bold; color: blue;"</span>></span>{{props.row.age}}<span class="tag"></<span class="name">span</span>></span> </span><br><span class="line"> <span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"><<span class="name">span</span> <span class="attr">v-else</span>></span></span><br><span class="line"> {{props.formattedRow[props.column.field]}}</span><br><span class="line"> <span class="tag"></<span class="name">span</span>></span></span><br><span class="line"> <span class="tag"></<span class="name">template</span>></span></span><br><span class="line"><span class="tag"></<span class="name">vue-good-table</span>></span></span><br></pre></td></tr></table></figure>
<h3 id="Result"><a href="#Result" class="headerlink" title="Result"></a>Result</h3><custom-row>
<p>
</div>
<div class="article-more-link">
<a href="/wiki/vue-good-table/advanced/#more">자세히 보기</a>
</div>
<footer class="article-footer">
</footer>
</div>
</article>
<article id="post-vue-good-table/column-filter-options" class="article article-type-post" itemscope itemprop="blogPost">
<div class="article-inner">
<header class="article-header">
<div class="article-meta">
<div class="article-category">
<i class="fa fa-folder"></i>
<a class="article-category-link" href="/categories/Vue-good-table/">Vue-good-table</a>
</div>