Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tfootが2行である場合の対応例(別案)
  • Loading branch information
jun68ykt committed Aug 17, 2019
1 parent c573f41 commit e2318a8
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions index.html
Expand Up @@ -426,6 +426,10 @@
<th colspan="4" style="text-align:right">Total:</th>
<th></th>
</tr>
<tr>
<th colspan="4" style="text-align:right">Grand Total:</th>
<th class="grand-total"></th>
</tr>
</tfoot>
</table>
</body>
Expand Down
5 changes: 4 additions & 1 deletion script.js
Expand Up @@ -29,8 +29,11 @@ $(document).ready(function() {

// Update footer
$( api.column( 4 ).footer() ).html(
'$'+pageTotal +' ( $'+ total +' total)'
'$'+pageTotal
);
$( api.table().footer() )
.find('.grand-total')
.text('$'+ total)
}
} );
} );

0 comments on commit e2318a8

Please sign in to comment.