-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
112 lines (105 loc) · 4.09 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
108
109
110
111
112
<!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 API Build</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="./js/table.js" defer></script>
<!-- <script src="./js/selection-workaround.js" defer></script> -->
<style>
.dropdown {
margin-left: 10px;
position: relative;
display: inline-block;
}
.dropdown-content {
display: none;
position: absolute;
background-color: #f9f9f9;
min-width: 550px;
box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
padding: 12px 16px;
z-index: 1;
}
.dropdown:hover .dropdown-content {
display: block;
}
</style>
</head>
<body>
<h1>Tabulator API 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="download-csv">Download CSV</button>
<button id="download-xlsx">Download XLSX</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">
<button id="filter-clear">Clear Filter</button>
<button id="header-filters-clear">Clear Column Filters</button>
<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>
</div>
<div id="example-table"></div>
</body>
</html>