Skip to content

Commit f9cc205

Browse files
committed
New: Bootstrap 4 styling and example
New: Semantic UI styling and example
1 parent 72395a2 commit f9cc205

6 files changed

+85
-2
lines changed

css/fixedHeader.bootstrap4.scss

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
2+
table.dataTable.fixedHeader-floating,
3+
table.dataTable.fixedHeader-locked {
4+
background-color: white;
5+
margin-top: 0 !important;
6+
margin-bottom: 0 !important;
7+
}
8+
9+
table.dataTable.fixedHeader-floating {
10+
position: fixed !important;
11+
}
12+
13+
table.dataTable.fixedHeader-locked {
14+
position: absolute !important;
15+
}
16+
17+
@media print {
18+
table.fixedHeader-floating {
19+
display: none;
20+
}
21+
}

css/fixedHeader.semanticui.scss

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
3+
table.fixedHeader-floating {
4+
position: fixed !important;
5+
border-bottom-width: 0 !important;
6+
}
7+
8+
table.fixedHeader-locked {
9+
position: absolute !important;
10+
}
11+
12+
@media print {
13+
table.fixedHeader-floating {
14+
display: none;
15+
}
16+
}

examples/styling/bootstrap4.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<dt-example table-type="html" order="2" framework="bootstrap4">
3+
4+
<css lib="datatables fixedheader" />
5+
<js lib="jquery datatables fixedheader">
6+
<![CDATA[
7+
$(document).ready(function() {
8+
var table = $('#example').DataTable( {
9+
fixedHeader: true
10+
} );
11+
} );
12+
]]>
13+
</js>
14+
15+
<title lib="FixedHeader">Bootstrap 4</title>
16+
17+
<info><![CDATA[
18+
19+
This example shows FixedHeader being styling by the Bootstrap 4 CSS framework.
20+
21+
]]></info>
22+
23+
</dt-example>

examples/styling/foundation.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<dt-example table-type="html" order="2" framework="foundation">
2+
<dt-example table-type="html" order="3" framework="foundation">
33

44
<css lib="datatables fixedheader" />
55
<js lib="jquery datatables fixedheader">

examples/styling/jqueryui.xml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<?xml version="1.0" encoding="UTF-8" ?>
2-
<dt-example table-type="html" order="3" framework="jqueryui">
2+
<dt-example table-type="html" order="5" framework="jqueryui">
33

44
<css lib="datatables fixedheader" />
55
<js lib="jquery datatables fixedheader">

examples/styling/semanticui.xml

+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0" encoding="UTF-8" ?>
2+
<dt-example table-type="html" order="4" framework="semanticui">
3+
4+
<css lib="datatables fixedheader" />
5+
<js lib="jquery datatables fixedheader">
6+
<![CDATA[
7+
$(document).ready(function() {
8+
var table = $('#example').DataTable( {
9+
fixedHeader: true
10+
} );
11+
} );
12+
]]>
13+
</js>
14+
15+
<title lib="FixedHeader">Semantic UI</title>
16+
17+
<info><![CDATA[
18+
19+
This example shows FixedHeader being styling by the [Semantic UI](http://semantic-ui.com) framework.
20+
21+
]]></info>
22+
23+
</dt-example>

0 commit comments

Comments
 (0)