-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
107 lines (102 loc) · 4.27 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tabulator Example</title>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css">
<link rel="stylesheet" href="./css/tabulator_bootstrap4.css">
<link href="https://fonts.googleapis.com/css?family=Roboto:300,400,500,700" rel="stylesheet">
<link rel="stylesheet" href="./css/style.css">
<script src="./js/moment.min.js" defer></script>
<script src="./js/tabulator.min.js" defer></script>
<script type="text/javascript" src="https://oss.sheetjs.com/sheetjs/xlsx.full.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf/1.3.5/jspdf.min.js" defer></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jspdf-autotable/3.0.5/jspdf.plugin.autotable.js" defer></script>
<script src="./js/table.js" defer></script>
</head>
<body>
<h1>Tabulator Working Build</h1>
<div>
<button id="history-undo">Undo Edit</button>
<button id="history-redo">Redo Edit</button>
<button id="select-visible">Select Visible</button>
<button id="select-page">Select All</button>
<button id="deselect-all">Deselect All</button>
<span id="select-stats"></span>
</div>
<br>
<div>
<button id="resetColumns">Reset Columns</button>
<button id="resetSort">Reset Sort</button>
<button id="resetFilter">Reset Filter</button>
<button id="resetPage">Reset Page</button>
<button id="resetFull">Full Reset</button>
</div>
<br>
<div>
<button id="load-json">Load JSON</button>
<button id="download-csv">Download CSV</button>
<button id="download-json">Download JSON</button>
<button id="download-xlsx">Download XLSX</button>
<button id="download-pdf">Download PDF</button>
<button id="download-html">Download HTML</button>
<button id="print-table">Print Table</button>
</div>
<br>
<div>
<select id="filter-field">
<option></option>
<option value="id">id</option>
<option value="Company">Company</option>
<option value="Status">Status</option>
<option value="Prefix">Prefix</option>
<option value="FirstName">FirstName</option>
<option value="LastName">Last Name</option>
<option value="City">City</option>
</select>
<select id="filter-type">
<option value="=">=</option>
<option value="<"><</option>
<option value="<="><=</option>
<option value=">">></option>
<option value=">=">>=</option>
<option value="!=">!=</option>
<option value="like">like</option>
</select>
<input id="filter-value" type="text" placeholder="value to filter">
<div class="dropdown">
<span>?</span>
<div class="dropdown-content">
<h3>Tabulator comes with a number of filter comparison types:</h3>
<ul>
<li> = - Displays only rows with data that is the same as the filter</li>
<li> < - Displays rows with a value less than the filter value</li>
<li> <= - Displays rows with a value less than or equal to the filter value</li>
<li> > - Displays rows with a value greater than the filter value</li>
<li> >= - Displays rows with a value greater than or equal to the filter value</li>
<li> != - Displays rows with a value that is not equal to the filter value</li>
<li> like - Displays any rows with data that contains the specified string anywhere in the specified field. (case insensitive)</li>
</ul>
</div>
</div>
 
<button id="filter-clear">Clear All Filters</button>
 
<input id="searchAll" type="text" placeholder="Search All Filter">
<div class="dropdown">
<span>?</span>
<div class="dropdown-content">
<h3>Further Help to tighten your Search Criteria :</h3>
<ul>
<li> ^pen - Displays only rows where words Start with "pen"</li>
<li> ing$ - Displays only rows where words End with "ing"</li>
</ul>
</div>
</div>
</div>
<div id="example-table"></div>
</body>
</html>