blog
[DataTables] column grouping 본문
column들을 그룹핑하는 방법
이렇게 나누어서 그룹핑을 하겠다.
<thead> 태그 밑에 그룹핑 관련 코드를 넣으면 된다.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<thead>
<!-- Complex headers -->
<tr>
<th rowspan="2">Name</th>
<th colspan="3">group1</th>
<th colspan="2">group2</th>
</tr>
<!-- Complex headers end -->
<tr>
<!--
<th>Name</th>
-->
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</thead>
|
cs |
참고 : https://datatables.net/examples/basic_init/complex_header.html
'Web > front-end' 카테고리의 다른 글
alert [object Object] (0) | 2022.03.14 |
---|---|
[DataTables] row Select 기능 추가(선택한 행의 data 값 가져오기) (0) | 2022.03.05 |
[Bootstrap] Font Awesome Icon에 tooltip 적용 + tooltip 개행 (0) | 2022.02.26 |
[DataTables] dropdown select search (2가지 방법) (0) | 2022.02.26 |
[DataTables] excel download 기능 추가 (0) | 2022.02.23 |