Testing totals on bootstrap table
by jimkennelly
HTML
<link rel="stylesheet" href="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.css">
<script src="https://rawgit.com/wenzhixin/bootstrap-table/master/src/bootstrap-table.js"></script>
<table id="table" data-show-footer=true OnPostBody="test()">
<thead>
<tr>
<th data-field="name" data-formatter="a">Name</th>
<th data-field="tons">Stars</th>
</tr>
</thead>
</table>
JavaScript
var data = [
{
"name": "bootstrap-table",
"tons": 100
},
{
"name": "multiple-select",
"tons": 200
},
];
$(function () {
$t = $("#table");
$t.bootstrapTable({
data: data
});
});
function a(){
alert("a");
}
function t(){
alert("t");
}
function test(){
alert("t");
}