mirror of
https://github.com/koalyptus/TableFilter.git
synced 2024-06-16 12:45:49 +02:00
Added the load-filters-on-demand demo page
This commit is contained in:
parent
7b53f8eb33
commit
f1c55edf62
File diff suppressed because it is too large
Load diff
13029
examples/load-filters-on-demand.html
Normal file
13029
examples/load-filters-on-demand.html
Normal file
File diff suppressed because it is too large
Load diff
41
static/templates/load-filters-on-demand.html
Normal file
41
static/templates/load-filters-on-demand.html
Normal file
|
@ -0,0 +1,41 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html lang="en">
|
||||||
|
<head>
|
||||||
|
<title>{NAME} v{VERSION} - Load filters on demand Demo</title>
|
||||||
|
<!-- @import partials/style.html -->
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h1>{NAME} v{VERSION}</h1>
|
||||||
|
<h2>Load filters on demand demo</h2>
|
||||||
|
<p>
|
||||||
|
The drop-down filter options are loaded only when used for the first time.
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<!-- @import partials/pre.html -->
|
||||||
|
<!-- @import partials/countries-table.html -->
|
||||||
|
|
||||||
|
<!-- @import partials/tablefilter-script.html -->
|
||||||
|
<script data-config>
|
||||||
|
var tfConfig = {
|
||||||
|
base_path: '../dist/tablefilter/',
|
||||||
|
col_widths: [
|
||||||
|
"150px", "100px", "100px",
|
||||||
|
"70px", "70px", "70px",
|
||||||
|
"70px", "60px", "60px"
|
||||||
|
],
|
||||||
|
alternate_rows: true,
|
||||||
|
rows_counter: true,
|
||||||
|
btn_reset: true,
|
||||||
|
status_bar: true,
|
||||||
|
fill_slc_on_demand: true,
|
||||||
|
col_0: 'multiple',
|
||||||
|
col_1: 'select',
|
||||||
|
col_2: 'checklist'
|
||||||
|
};
|
||||||
|
|
||||||
|
var tf = new TableFilter('demo', tfConfig);
|
||||||
|
tf.init();
|
||||||
|
</script>
|
||||||
|
<!-- @import partials/pre-inline-script.html -->
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in a new issue