Pure javascript plugin with non intrusive data in <table> in order to filter and sort
None !
- Add filter
<input>
in header - Add sort
<img>
in header - No inject data in
<table>
to work, only the id table - No jQuery requirement
<script type="text/javascript" src="smartable.js"></script>
var sortFilterTable = new smartab({
tabId : '#table',
linkUpSort : 'up-sort.png', //default
linkDownSort : 'down-sort.png', //default
linkNoSort : 'img/sort.png', //default
widthFilter : 100, //default
unsortCols : [1],
unfilterCols : [1]
});
sortFilterTable.addHeader();
tabId
: table identifierlinkUpSort
: up sort imagelinkDownSort
: down sort imagelinkNoSort
: general sort imagewidthFilter
: width of<input>
filter in pxunsortCols
: list of column number don't sortableunfilterCols
: list of column number don't filterable
? | Latest ✔ | ? | ? | ? |