Created
January 13, 2023 23:53
-
-
Save angusdev/bf5948026bab85173d9e25c5d11b4015 to your computer and use it in GitHub Desktop.
Add TableFilter
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('<link href="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.2.0/css/bootstrap-theme.min.css" type="text/css" rel="stylesheet">').appendTo(document.head); | |
$('<link href="https://www.tablefilter.com/tablefilter/style/tablefilter.css" type="text/css" rel="stylesheet">').appendTo(document.head); | |
var s = document.createElement('script'); | |
s.setAttribute('src', 'https://www.tablefilter.com/tablefilter/tablefilter.js'); | |
s.onload = _ => document.querySelectorAll('table').forEach(e => new TableFilter(e).init()); | |
document.body.appendChild(s); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment