1
0
Fork 0
mirror of https://github.com/koalyptus/TableFilter.git synced 2024-05-20 07:16:41 +02:00
TableFilter/static/templates/auto-filter.html

47 lines
1.1 KiB
HTML
Raw Normal View History

2015-06-09 10:46:08 +02:00
<!DOCTYPE html>
<html lang="en">
<head>
<title>{NAME} v{VERSION} - Auto-filter Demo</title>
<!-- @import partials/style.html -->
</head>
<body>
<h1>{NAME} v{VERSION}</h1>
<h2>Auto-filter demo</h2>
<p>
This demo features the auto-filter behaviour, the table is filtered as soon
as the user stops typing.
</p>
<!-- @import partials/pre.html -->
<!-- @import partials/countries-table.html -->
<!-- @import partials/tablefilter-script.html -->
<script data-config>
var filtersConfig = {
base_path: '../dist/tablefilter/',
2018-02-02 12:26:28 +01:00
auto_filter: {
delay: 750 // milliseconds
},
2015-06-09 10:46:08 +02:00
filters_row_index: 1,
2016-04-14 10:22:44 +02:00
state: true,
2015-06-09 10:46:08 +02:00
alternate_rows: true,
rows_counter: {
text: 'Rows: '
},
2015-06-09 10:46:08 +02:00
btn_reset: true,
status_bar: true,
2018-06-15 16:21:26 +02:00
sticky_headers: true,
2015-06-09 10:46:08 +02:00
msg_filter: 'Filtering...'
};
var tf = new TableFilter(
document.querySelector('#demo'),
filtersConfig
);
2015-06-09 10:46:08 +02:00
tf.init();
</script>
<!-- @import partials/pre-inline-script.html -->
</body>
</html>