A lightweight jQuery plugin to create scrollable tables for better mobile experience.
-
Install jQuery
-
Copy the images to
<root>/images/
folder -
Include the CSS and JS file into the
<head>
<link rel="stylesheet" type="text/css" href="/css/jquery.scroltable.min.css" />
<script src="/js/jquery.scroltable.min.js"></script>
-
Call the
scroltable
method to initialize scrollable tables.$('#sample-table').scroltable();
Method | Arguments | Description |
---|---|---|
scroltable |
(none) | Initializes ScrolTable |
destory |
(none) | Destroys ScrolTable |
Destroy the scroltables.
$('#sample-table').scroltable('destroy');
ScrolTable works on IE9+ in addition to other modern browsers such as Chrome, Firefox, and Safari.
jQuery 1.7+
Copyright (c) 2016 Tim Wong
Licensed under the MIT license.