|
|
(5 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
| /* SORTABLE */ | | /* SORTABLE */ |
| $(document).ready(function() {
| |
| var mytable = new ttable('ttable');
| |
| mytable.style.table = 'table-default';
| |
| mytable.style.tablehead = 'head-default';
| |
| mytable.style.tablebody = 'body-default';
| |
| mytable.style.tablecaption = 'caption-default';
| |
| mytable.style.headhover = true;
| |
| mytable.style.tablehead_hover = 'hoverhead-default';
| |
| mytable.style.tableheadtd_hover = 'hoverheadtd-default';
| |
| mytable.style.bodyhover = true;
| |
| mytable.style.tablebody_hover = 'hoverbody-default';
| |
| mytable.style.stripped = true;
| |
| mytable.style.odd_row = 'odd-default';
| |
| mytable.style.num = true;
| |
| mytable.style.num_class = 'num-default';
| |
|
| |
| mytable.highlight.enabled = true;
| |
| mytable.highlight.style = 'highlight-default';
| |
| mytable.highlight.onclick = true;
| |
| mytable.highlight.onclick_style = 'clicklight-default';
| |
|
| |
| mytable.sorting.enabled = false;
| |
| mytable.sorting.sortall = false;
| |
| mytable.sorting.resetnum = false;
| |
| mytable.sorting.sortedstyle = 'sorted-default';
| |
| mytable.sorting.clickablestyle = 'clickable-default';
| |
| mytable.sorting.sortascstyle = 'sortasc-default';
| |
| mytable.sorting.sortdescstyle = 'sortdesc-default';
| |
|
| |
| mytable.pagination.enabled = true;
| |
| mytable.pagination.rowperpage=5;
| |
| mytable.edit.enabled = true;
| |
| var mytable1 = new ttable('ttable1');
| |
| mytable1.rendertable();
| |
| mytable.rendertable();
| |
|
| |
| mytable.search.enabled = true;
| |
| mytable.search.inputID = 'filter';
| |
| mytable.search.casesensitive = false;
| |
|
| |
| $('#exporttable').click(function() {alert($('#ttable4').tocsv(','));});
| |
| });
| |