Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Sandro hc respect caption #349

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions docs/demos/1-simple/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ <h1>Simple</h1>
<thead>
<tr>
<th>
<b>N</b>ame
<b>Name</b>
</th>
<th>Ext.</th>
<th>City</th>
Expand Down Expand Up @@ -757,8 +757,7 @@ <h1>Simple</h1>
headerClass: "red"
}
]
})

})
</script>
</body>
</html>
125 changes: 125 additions & 0 deletions docs/demos/24-footer/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" href="data:image/png;base64,iVBORw0KGgo=">
<title>Custom Footer</title>

<!-- DataTable Styles -->
<link rel="stylesheet" href="../dist/css/style.css">

<!-- Demo Styles -->
<link rel="stylesheet" href="../demo.css">
</head>
<body>
<h1>Custom Footer</h1>
<table class="table" id="custom-footer-table">
<thead>
<tr>
<th>Athlete</th>
<th>Nation</th>
<th data-type="number" style="background-color: #ffd700;">Gold</th>
<th data-type="number" style="background-color: #c0c0c0;">Silver</th>
<th data-type="number" style="background-color: #cc9966;">Bronze</th>
</tr>
</thead>
<tbody>
<tr>
<td>Michael Phelps</td>
<td>United States</td>
<td>23</td>
<td>3</td>
<td>2</td>
</tr>
<tr>
<td>Larisa Latynina</td>
<td>Soviet Union</td>
<td>9</td>
<td>5</td>
<td>4</td>
</tr>
<tr>
<td>Paavo Nurmi</td>
<td>Finland</td>
<td>9</td>
<td>3</td>
<td>0</td>
</tr>
<tr>
<td>Mark Spitz</td>
<td>United States</td>
<td>9</td>
<td>1</td>
<td>1</td>
</tr>
<tr>
<td>Carl Lewis</td>
<td>United States</td>
<td>9</td>
<td>1</td>
<td>0</td>
</tr>
<tr>
<td>Marit Bjørgen</td>
<td>Norway</td>
<td>8</td>
<td>4</td>
<td>3</td>
</tr>
<tr>
<td>Ole Einar Bjørndalen</td>
<td>Norway</td>
<td>8</td>
<td>4</td>
<td>1</td>
</tr>
<tr>
<td>Bjørn Dæhlie</td>
<td>Norway</td>
<td>8</td>
<td>4</td>
<td>0</td>
</tr>
<tr>
<td>Birgit Fischer</td>
<td>Germany</td>
<td>8</td>
<td>4</td>
<td>0</td>
</tr>
<tr>
<td>Sawao Kato</td>
<td>Japan</td>
<td>8</td>
<td>3</td>
<td>1</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="2">This is a table footer.</td>
</tr>
</tfoot>
<tfoot style="font-weight: bold">
<tr>
<td colspan="2">Total</td>
<td>99</td>
<td>32</td>
<td>12</td>
</tr>
</tfoot>
<caption>This is a table caption.</caption>
</table>

<script type="module">
import {DataTable} from "../dist/module.js"
window.dt = new DataTable("table", {
perPage: 5,
perPageSelect: [5, 10, 15, ["All", -1]]
// A caption can also be specified this way:
// caption: 'This is another table caption.'
})
</script>
</body>
</html>
117 changes: 73 additions & 44 deletions docs/demos/dist/module.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion docs/demos/dist/module.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/demos/dist/umd.js

Large diffs are not rendered by default.

Loading
Loading