Skip to content

Instantly share code, notes, and snippets.

@okuniw
Last active August 29, 2015 14:16
Show Gist options
  • Save okuniw/e008976c4f8dfc1fd4f9 to your computer and use it in GitHub Desktop.
Save okuniw/e008976c4f8dfc1fd4f9 to your computer and use it in GitHub Desktop.
Use FooTable jQuery plugin
<!-- from http://fooplugins.com/footable-demos/ -->
<html>
<head>
<link href="path_to_your_css/footable.core.css" rel="stylesheet" type="text/css" />
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js" type="text/javascript"></script>
<script src="path_to_your_js/footable.js" type="text/javascript"></script>
<script type="text/javascript">
$(function () {
$('.footable').footable();
});
</script>
</head>
<body>
<table class="footable table">
<thead>
<tr>
<th data-toggle="true">Name</th>
<th data-hide="phone">Job Title</th>
<th data-hide="phone,tablet">Status</th>
<th data-hide="all">Description</th>
</tr>
</thead>
<tbody>
...
</tbody>
</table>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment