causeway-standard-theme
Version:
1,647 lines (1,625 loc) • 52.3 kB
HTML
<div class="container page">
<div class="content pane single-pane">
<section>
<a id="table"></a>
<header class="content-header">
<h1 class="title">
Tables
</h1>
</header>
<p>Tables should be wrapped in a
<code><div class="table-wrapper"> <!--table goes in here --> </div></code> with a class
<code>.table-wrapper</code></p>
<p>
<code><div class="table-wrapper"></div></code> should basically contain tree first level container divs.
</p>
<ul>
<li>
<code><div class="table-toolbar"></div></code> -- Its optional. Should be used to hold table related action buttons as in below example.
</li>
<li>
<code><div class="table-content"></div></code> -- This should hold the table.
<code><tfoot></tfoot></code> should not be the part of table.
</li>
<li>
<code><div class="table-footer"></div></code> -- This should hold table footer content which normally exists in
<code><tfoot></tfoot></code>
</li>
</ul>
<p>Tables must be created with the classes <code>"table"</code> and <code>"table-striped"</code> and contain
<code><thead></code>,
<code><tbody></code> tags only, preferably in that order and should be wrapped in
<code><div class="table-content"></div></code>.</p>
<p><code><tfoot></code> contents should go in
<code><div class="table-footer"></div></code> and be placed immediately after
<code><div class="table-content"></div></code>.</p>
<p>To control the width of individual column use <code><col></code> tag nested inside
<code><colgroup></colgroup></code>. Refer the code below.
<code><col></code> accepts <code>"width"</code> attribute and the value can specified in
<code>"%", "px" or "relative units"</code>
</p>
<p> For table group heading add <code><tr></tr></code> as first element of
<code><thead></code> and add class <code>"has-table-group"</code> to <code><thead></code></p>
<div class="table-wrapper edge-2-edge">
<div class="table-toolbar">
<button type="button" class="btn btn-filter">
Filter
</button>
<div class="toolbar-filter">
<form action="" class="form-inline">
<div class="form-row">
<div class="form-group">
<label for="listField0value" class="control-label has-tooltip" data-toggle="tooltip" data-title="Search for a specific document number" data-original-title="" title="">Document Number:</label>
<div class="control-input">
<input type="text" id="listField0value" class="form-control" name="listField[0].value" value="" maxlength="40" size="40">
</div>
</div>
<div class="form-group">
<label class="control-label has-tooltip" data-toggle="tooltip" data-title="Select the batch archive status" data-original-title="" title="">Archived:</label>
<div class="control-input">
<div class="form-group radio form-group-inline">
<input type="radio" id="listField1value_0" class="form-control" name="listField[1].value" value="" checked>
<label for="listField1value_0" class="has-tooltip" data-toggle="tooltip" data-title="Select the batch archive status" data-original-title="" title=""><span class="radio-icon"></span>All</label>
</div>
<div class="form-group radio form-group-inline">
<input type="radio" id="listField1value_1" class="form-control" name="listField[1].value" value="Y">
<label for="listField1value_1" class="has-tooltip" data-toggle="tooltip" data-title="Select the batch archive status" data-original-title="" title=""><span class="radio-icon"></span>Archived</label>
</div>
<div class="form-group radio form-group-inline">
<input type="radio" id="listField1value_2" class="form-control" name="listField[1].value" value="N">
<label for="listField1value_2" class="has-tooltip" data-toggle="tooltip" data-title="Select the batch archive status" data-original-title="" title=""><span class="radio-icon"></span>Not Archived</label>
</div>
</div>
</div>
<div class="form-group pull-right">
<button type="button" class="btn btn-default btn-with-icon has-tooltip" title="" data-original-title="Search this list by typing text to compare against in the fields below then click search">Search
<span class="glyphicon glyphicon-search"></span></button>
</div>
</div>
</form>
</div>
</div>
<div class="table-content">
<table class="table table-striped">
<thead>
<tr>
<th>
Column 1, width = 20%
</th>
<th>
Column 2, width = 30%
</th>
<th>
Column 3, width = 50%
</th>
</tr>
<tr class="filter">
<th>
<div class="form-group">
<input class="form-control" type="text" id="col11_filter" name="col1_filter" placeholder="Enter Value">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col12_filter" name="col2_filter" placeholder="Enter Value">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col13_filter" placeholder="Enter Value" name="col3_filter">
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
<tr>
<td>
Cell 77
</td>
<td>
Cell 88
</td>
<td>
Cell 99
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<!--Table Footer contents of <tfoot> should be place here-->
</div>
</div>
<pre><code>
<div class="table-wrapper">
<div class="table-toolbar">
<!-- Table action button or filters -->
<button type="button" class="btn btn-filter">
Filter
</button>
<div class="toolbar-filter">
<!--Toolbar related any content goes in here. This content toggles on above filter button-->
</div>
</div>
<div class="table-content">
<table class="table table-striped">
<colgroup>
<col width="20%">
<col width="30%">
<col width="50%">
</colgroup>
<thead class="has-table-group">
<tr>
<th colspan="2"></th>
<th>Title</th>
</tr>
<tr>
<th>
Column 1, width = 20%
</th>
<th>
Column 2, width = 30%
</th>
<th>
Column 3, width = 50%
</th>
</tr>
<tr class="filter">
<th>
<div class="form-group">
<input class="form-control" type="text" id="col1_filter" name="col1_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col2_filter" name="col2_filter" value=" ">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col3_filter" name="col3_filter">
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<!--Table Footer contents of <tfoot> should be place here-->
</div>
</div>
</code></pre>
<p>Tables that can have their rows re-ordered by a user (as by using the
<a href="http://jqueryui.com/sortable/">jQuery UI sortable component</a>) must have an empty cell at the start of every row (<code><th></code> in the
<code><thead></code> section and <code><td></code> in the <code><tfoot></code> and
<code><tbody></code> sections).</p>
<div class="table-wrapper">
<div class="table-content">
<table class="table table-striped table-handles">
<thead>
<tr>
<th class="handle"></th>
<th>
Column 1
</th>
<th>
Column 2
</th>
<th>
Column 3
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="handle">
<a href="#" title="" class="table-notification"></a>
</td>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td class="handle">
<a href="#" title="" class="table-notification-alert"></a>
</td>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
</tr>
<tr>
<td class="handle"></td>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<div class="col-md-9"></div>
<div class="col-md-3"></div>
</div>
</div>
<pre>
<code>
<div class="table-wrapper">
<div class="table-content">
<table class="table table-striped table-handles">
<thead>
<tr>
<th class="handle"></th>
<th>
Column 1
</th>
<th>
Column 2
</th>
<th>
Column 3
</th>
</tr>
</thead>
<tbody>
<tr>
<td class="handle"></td>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td class="handle"></td>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
</tr>
<tr>
<td class="handle"></td>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<div class="col-md-9"></div>
<div class="col-md-3"></div>
</div>
</div>
</code>
</pre>
<p>Tables that can have columns sorted by a user must use the appropriate sorting handles in each of the column headings that can be sorted (the
<code><th></code> elements in the <code><thead></code> element). Each
<code><th></code> element must have a class of
<code>"sorting"</code> and an optional class based on the sorting capability and currently active sort as detailed below.
</p>
<div class="table-wrapper">
<div class="table-content">
<table class="table table-striped">
<thead>
<tr>
<th>
Column
</th>
<th>
Class
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Can be sorted but is not the currently active sorted column.
</td>
<td>
No class required
</td>
</tr>
<tr>
<td>
Is currently sorted ascending.
</td>
<td>
sorting-asc
</td>
</tr>
<tr>
<td>
Is currently sorted descending.
</td>
<td>
sorting-desc
</td>
</tr>
<tr>
<td>
Can be sorted but sorting is currently disabled
</td>
<td>
sorting-disabled
</td>
</tr>
<tr>
<td>
Can only be sorted ascending but is not the currently active sorted column.
</td>
<td>
sorting-desc-disabled
</td>
</tr>
<tr>
<td>
Can only be sorted ascending and is the currently active sorted column.
</td>
<td>
sorting-desc-disabled-asc
</td>
</tr>
<tr>
<td>
Can only be sorted descending but is not the currently active sorted column.
</td>
<td>
sorting-asc-disabled
</td>
</tr>
<tr>
<td>
Can only be sorted descending and is the currently active sorted column.
</td>
<td>
sorting-asc-disabled-desc
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<div class="pull-left pagination-page-view">
<div class="form-group">
<label for="pageNumber" class="control-label ">Go to page:</label>
<div class="control-input">
<input type="text" id="pageNumber" class="form-control" name="pageNumber" value="" size="1">
</div>
</div>
</div>
<div class="pull-left pagination-page-view">
<label class="control-label ">Viewing page 1 of 133:</label>
</div>
<ul class="pagination pull-right">
<li><span class="glyphicon glyphicon-pagination-first"></span></li>
<li class="disabled"><span class="glyphicon glyphicon-pagination-prev"></span></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#" class="glyphicon glyphicon-pagination-next"></a></li>
<li><a href="#" class="glyphicon glyphicon-pagination-last"></a></li>
</ul>
</div>
</div>
<br/>
<p>
Table with horizontal scrolling.
</p>
<div class="table-wrapper fixed-header1">
<div class="table-content">
<table id="my_table" class="table table-striped table-sort fixed-header">
<thead>
<tr>
<th>
<span>LongLongLongHeaderWord</span>
<a class="sorting" href="javascript:void(0)"></a>
</th>
<th>
<span>Very Very Long Header Text</span>
<a class="sorting sorting-desc" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 3</span>
<a class="sorting sorting-desc-disabled" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 4</span>
<a class="sorting sorting-asc" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 5</span>
<a class="sorting sorting-asc-disabled" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 6</span>
<a class="sorting sorting-disabled" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 7</span>
</th>
<th><span>Column 08</span></th>
<th><span>Column 09</span></th>
<th><span>Column 10</span></th>
<th><span>Column 11</span></th>
<th><span>Column 12</span></th>
<th><span>Column 13</span></th>
<th><span>Column 14</span></th>
<th><span>Column 15</span></th>
<th><span>Column 16</span></th>
<th><span>Column 17</span></th>
<th><span>Column 18</span></th>
<th><span>Column 19</span></th>
<th><span>Column 20</span></th>
</tr>
</thead>
<tbody>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
<td>
Cell 6
</td>
<td colspan="14">
Cell 7
</td>
</tr>
<tr>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
<td>
Cell 10
</td>
<td>
Cell 11
</td>
<td>
Cell 12
</td>
<td>
Cell 13
</td>
<td colspan="14">
Cell 14
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
<td>
Cell 20
</td>
<td colspan="14">
Cell 21
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
</div>
</div>
<br>
<br>
<div class="table-wrapper">
<div class="table-toolbar">
<button type="button" class="btn btn-filter">
Filter
</button>
</div>
<div class="table-content">
<table id="my_table2" class="table table-filter table-sort">
<thead>
<tr>
<th>
<span>LongLongLongHeaderWord</span>
<a class="sorting sorting-desc-disabled" href="javascript:void(0)"></a>
</th>
<th>
<span>Very Very Long Header Text</span>
<a class="sorting" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 3</span>
<a class="sorting sorting-desc-disabled" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 4</span>
<a class="sorting sorting-asc" href="javascript:void(0)"></a>
</th>
<th>
<span>Column 5</span>
<a class="sorting sorting-asc-disabled" href="javascript:void(0)"></a>
</th>
</tr>
<tr class="filter">
<th>
<div class="form-group">
<input class="form-control" type="text" id="col11" name="col1_filter" value="Hello">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col12" name="col2_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col13" name="col3_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col14" name="col4_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col15" name="col5_filter">
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
<td>
Cell 4
</td>
<td>
Cell 5
</td>
</tr>
<tr>
<td>
Cell 15
</td>
<td>
Cell 16
</td>
<td>
Cell 17
</td>
<td>
Cell 18
</td>
<td>
Cell 19
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer"></div>
</div>
<pre>
<code>
<div class="table-wrapper">
<div class="table-content">
<table class="table table-striped">
<thead>
<tr>
<th>
Column
</th>
<th>
Class
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Can be sorted but is not the currently active sorted column.
</td>
<td>
No class required
</td>
</tr>
<tr>
<td>
Is currently sorted ascending.
</td>
<td>
sorting-asc
</td>
</tr>
<tr>
<td>
Is currently sorted descending.
</td>
<td>
sorting-desc
</td>
</tr>
<tr>
<td>
Can be sorted but sorting is currently disabled
</td>
<td>
sorting-disabled
</td>
</tr>
<tr>
<td>
Can only be sorted ascending but is not the currently active sorted column.
</td>
<td>
sorting-desc-disabled
</td>
</tr>
<tr>
<td>
Can only be sorted ascending and is the currently active sorted column.
</td>
<td>
sorting-desc-disabled-asc
</td>
</tr>
<tr>
<td>
Can only be sorted descending but is not the currently active sorted column.
</td>
<td>
sorting-asc-disabled
</td>
</tr>
<tr>
<td>
Can only be sorted descending and is the currently active sorted column.
</td>
<td>
sorting-asc-disabled-desc
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
<ul class="pagination pull-right">
<li><span class="glyphicon glyphicon-pagination-first"></span></li>
<li class="disabled"><span class="glyphicon glyphicon-pagination-prev"></span></li>
<li class="active"><a href="#">1</a></li>
<li><a href="#">2</a></li>
<li><a href="#">3</a></li>
<li><a href="#">4</a></li>
<li><a href="#">5</a></li>
<li><a href="#" class="glyphicon glyphicon-pagination-next"></a></li>
<li><a href="#" class="glyphicon glyphicon-pagination-last"></a></li>
</ul>
</div>
</div>
</code>
</pre>
<ul>
<li>
Points:
<ul>
<li>Filter row</li>
</ul>
</li>
</ul>
<p>Tables that can have columns filtered by a user must add a second row to the
<code><thead></code> element with a class of <code>"filter"</code> that contains
<code><th></code> elements containing the appropriate
<code><a href="/docs/components/forms.html#forms">form elements</a></code> without their accompanying labels.
</p>
<form role="form">
<div class="table-wrapper">
<div class="table-toolbar">
<button type="button" class="btn btn-filter">
Filter
</button>
</div>
<div class="form-row table-content">
<table class="table table-striped">
<thead>
<tr>
<th>
<div class="form-group">
<div class="checkbox">
<input type="checkbox" class="form-control filter" value="true">
<label><span class="checkbox-icon"></span></label>
</div>
</div>
</th>
<th>
Column 2
</th>
<th>
Column 3
</th>
</tr>
<tr class="filter">
<th>
<div class="form-group">
<input class="form-control" type="text" id="col1_filter" name="col1_filter" value="Hello World">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col2_filter" name="col2_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col3_filter" name="col3_filter">
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td>
<div class="form-group">
<input class="form-control" type="text" id="col4_filter" name="col1_filter">
</div>
</td>
<td>
<div class="form-group">
<input class="form-control" type="text" id="col5_filter" name="col1_filter">
</div>
</td>
<td>
<div class="form-group">
<input class="form-control" type="text" id="col6_filter" name="col1_filter">
</div>
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
</div>
</div>
</form>
<pre>
<code>
<div class="table-wrapper">
<div class="table-toolbar">
<button type="button" class="btn btn-filter">
Filter
</button>
</div>
<div class="form-row table-content">
<table class="table table-striped">
<thead>
<tr class="filter">
<th>
<div class="form-group checkbox no-label">
<input type="checkbox" class="form-control filter" value="true">
<label><span class="checkbox-icon"></span></label>
</div>
</th>
<th>
Column 2
</th>
<th>
Column 3
</th>
</tr>
<tr class="filter">
<th>
<div class="form-group">
<input class="form-control" type="text" id="col1_filter" name="col1_filter" value="Hello World">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col2_filter" name="col2_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col3_filter" name="col3_filter">
</div>
</th>
</tr>
</thead>
<tbody>
<tr>
<td>
Cell 1
</td>
<td>
Cell 2
</td>
<td>
Cell 3
</td>
</tr>
<tr>
<td>
<div class="form-group">
<input class="form-control" type="text" id="col4_filter" name="col1_filter">
</div>
</td>
<td>
<div class="form-group">
<input class="form-control" type="text" id="col5_filter" name="col1_filter">
</div>
</td>
<td>
<div class="form-group">
<input class="form-control" type="text" id="col6_filter" name="col1_filter">
</div>
</td>
</tr>
<tr>
<td>
Cell 7
</td>
<td>
Cell 8
</td>
<td>
Cell 9
</td>
</tr>
</tbody>
</table>
</div>
<div class="table-footer">
</div>
</div>
</code>
</pre>
<header>
<h1 class="title">
Table with Filter Columns
</h1>
</header>
<div class="table-wrapper fixed-header2">
<div class="table-toolbar">
<button type="button" class="btn btn-filter">
Filter
</button>
</div>
<div class="table-content">
<table class="table table-striped table-filter fixed-header">
<thead>
<tr>
<th>Name</th>
<th>User Name</th>
<th>Email</th>
</tr>
<tr class="filter">
<th>
<div class="form-group">
<input class="form-control" type="text" id="col1" name="col1_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col2" name="col2_filter">
</div>
</th>
<th>
<div class="form-group">
<input class="form-control" type="text" id="col3" name="col3_filter">
</div>
</th>
</tr>