UNPKG

1.45 kBHTMLView Raw
1<!DOCTYPE html>
2<html lang="en">
3<head>
4 <title>{NAME} v{VERSION} - RequireJs demo</title>
5 <!-- @import partials/style.html -->
6</head>
7<body>
8<h1>{NAME} v{VERSION}</h1>
9<h2>RequireJs Demo</h2>
10
11<!-- @import partials/pre.html -->
12
13<!-- @import partials/countries-by-continent.html -->
14
15<script src="//cdnjs.cloudflare.com/ajax/libs/require.js/2.1.17/require.min.js"></script>
16<script data-config>
17requirejs(
18 ['../dist/tablefilter/tablefilter'],
19 function(mod){
20 var TableFilter = mod.TableFilter;
21 var tfConfig = {
22 base_path: '../dist/tablefilter/',
23 col_1: 'multiple',
24 col_2: 'checklist',
25 alternate_rows: true,
26 rows_counter: true,
27 enable_default_theme: true,
28 col_widths: [
29 '70px', '170px', '170px',
30 '110px', '90px', '250px'
31 ],
32 extensions:[
33 {
34 name: 'sort',
35 types: [
36 'number', 'string', 'string',
37 'US', 'none', 'string'
38 ]
39 },
40 { name: 'colsVisibility' },
41 { name: 'filtersVisibility' }
42 ]
43 };
44
45 tf = new TableFilter('demo', tfConfig);
46 tf.init();
47 }
48);
49</script>
50
51<!-- @import partials/pre-inline-script.html -->
52</body>
53</html>