Example: Table
table header table header table header
default ... ...
default ... ...
default ... ...
Copy
                                    
                                        <div class="table-responsive">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table">
<thead>
<tr>
<th width="50%" align="left" valign="middle">Text</th>
<th width="25%" align="right" valign="middle">Text</th>
<th width="25%" align="right" valign="middle">Text</th>
</tr>
</thead>
<tbody>
<tr>
<td align="left" valign="middle">Text</td>
<td align="right" valign="middle">Text</td>
<td align="right" valign="middle">Text</td>
</tr>
<tr>
<td align="left" valign="middle">Text</td>
<td align="right" valign="middle">Text</td>
<td align="right" valign="middle">Text</td>
</tr>
<tr>
<td align="left" valign="middle">Text</td>
<td align="right" valign="middle">Text</td>
<td align="right" valign="middle">Text</td>
</tr>
</tbody>
</table>
</div>



Example: Table Bordered
table header table header table header
text ... ...
text ... ...
text ... ...
Copy
                                    
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-bordered">...</table>
                                    
                                



Example: Table Hover
table header table header table header
text ... ...
text ... ...
text ... ...
Copy
                                    
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-hover">...</table>
                                    
                                



Example: Table Striped
table header table header table header
text ... ...
text ... ...
text ... ...
Copy
                                    
                                        <table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-striped">...</table>
                                    
                                



Example: Helper Classes for <tr>s inside of <tbody> (Not intended for use on <tr>s inside of <thead>)
active ... ...
active disabled ... ...
disabled ... ...
 
success ... ...
warning ... ...
danger ... ...
 
header
subheader
subsubheader
 
subsubtotal ... ...
subtotal ... ...
total ... ...
Copy
                                    
                                        <tr class="active">...</tr>
<tr class="active disabled">...</tr>
<tr class="disabled">...</tr>

<tr class="success">...</tr>
<tr class="warning">...</tr>
<tr class="danger">...</tr>

<tr class="header">...</tr>
<tr class="subheader">...</tr>
<tr class="subsubheader">...</tr>

<tr class="subsubtotal">...</tr>
<tr class="subtotal">...</tr>
<tr class="total">...</tr>



Example: Table Scroll
table header table header table header
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
Copy
                                    
                                        <div class="table-responsive table-scroll" style="height:200px;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-bordered">...</table>
</div>



Example: Table Scroll (With Sticky Header)
table header table header table header
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
text ... ...
Copy
                                    
                                        <div class="table-responsive table-scroll table-sticky" style="height:200px;">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-bordered">...</table>
</div>



Example: Table Sorting

Read more about this plugin on iCheck's website.

table header table header table header
Row 01 A 1.00
Row 02 B 2.00
Row 03 C 3.00
Copy
                                    
                                        <div class="table-responsive">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table tablesorter" id="tableID">...</table>
</div>
Copy
                                    
                                        <!-- JAVASCRIPT ---------->
<script type="text/javascript" src="/scripts/common/js/tablesorter-2.31.3/jquery.tablesorter.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$("#tableID").tablesorter({ sortList: [[0,0]] });
});
</script>



Example: Table Sortable
table header  
Row 01Move to Top
Row 02Move to Top
Row 03Move to Top
Row 04Move to Top
Row 05Move to Top
Copy
                                    
                                        <div class="table-responsive">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-hover table-sortable" id="tableID">
<thead>
<tr>
<th width="95%" align="left" valign="middle">Text</th>
<th width="5%" align="right" valign="middle">&nbsp;</th>
</tr>
</thead>
<tbody class="ui-sortable">
<tr class="ui-sortable-handle">
<td align="left" valign="middle">Text <a class="move-to-top"><i class="fa-solid fa-circle-chevron-up"></i>Move to Top</a></td>
<td align="right" valign="middle"><a class="move-row-btn-icon"><i class="fa-solid fa-bars"></i></a></td>
</tr>
<tr class="ui-sortable-handle">
<td align="left" valign="middle">Text <a class="move-to-top"><i class="fa-solid fa-circle-chevron-up"></i>Move to Top</a></td>
<td align="right" valign="middle"><a class="move-row-btn-icon"><i class="fa-solid fa-bars"></i></a></td>
</tr>
<tr class="ui-sortable-handle">
<td align="left" valign="middle">Text <a class="move-to-top"><i class="fa-solid fa-circle-chevron-up"></i>Move to Top</a></td>
<td align="right" valign="middle"><a class="move-row-btn-icon"><i class="fa-solid fa-bars"></i></a></td>
</tr>
</tbody>
</table>
</div>
Copy
                                    
                                        <!-- JAVASCRIPT ---------->
<script type="text/javascript">
$(document).ready(function() {
$('#tableID tbody').sortable();
$('#tableID a.move-to-top').click(function() {
row = $(this).parents("tr:first");
$(this).parents('tbody').prepend(row);
});
});
</script>



Example: Table Accordion
  table header
  Row 0.00 0.00
  Row 0.00 0.00
  Row 0.00 0.00
Copy
                                    
                                        <div class="table-responsive">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table table-hover table-accordion">
<thead>
<tr>
<th width="5%" align="center" valign="middle">Text</th>
<th width="95%" align="left" valign="middle">Text</th>
</tr>
</thead>
<tbody>
<tr role="button" data-bs-toggle="collapse" href="#collapseTableRow-01" aria-expanded="false" aria-controls="collapseTableRow-01" class="collapsed">
<td width="5%" align="center" valign="middle"> </td>
<td width="95%" align="left" valign="middle">Text</td>
</tr>
</tbody>
</table>
<div class="collapse" id="collapseTableRow-01">
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table">
<tbody>
<tr>
<td width="5%" align="center" valign="middle"> </td>
<td width="15%" align="left" valign="middle">Text</td>
<td width="40%" align="left" valign="middle">Text</td>
<td width="40%" align="left" valign="middle">Text</td>
</tr>
</tbody>
</table>
</div>
</div>


© Interactive Brokers LLC