We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello, I'm trying to run Pop-up table filter locally. I get error:
Uncaught Error: Could not instantiate TableFilter: HTML table DOM element not found. at new TableFilter (tablefilter.js:1) at tablefilter.html:7
<script src="./tablefilter/tablefilter.js"></script> <script type="text/javascript">
var tf = new TableFilter('demo', 1, { base_path: 'tablefilter/', col_1: 'select', col_2: 'checklist', col_3: 'select', popup_filters: true, auto_filter: { delay: 1100 //milliseconds }, alternate_rows: true, rows_counter: true, btn_reset: true, loader: true, mark_active_columns: true, highlight_keywords: true, no_results_message: true, col_types: [ 'string', 'string', 'number', 'number', 'number', 'number', 'number', 'number', 'number' ], col_widths: [ '150px', '100px', '100px', '70px', '100px', '70px', '70px', '60px', '60px' ], extensions: [{ name: 'sort', images_path: 'https://unpkg.com/tablefilter@latest/dist/tablefilter/style/themes/' }] }); tf.init();
</script>
The text was updated successfully, but these errors were encountered:
The ID of your table is user-content-demo , but in your Javascript you try to find a DOM element with an ID demo
user-content-demo
demo
Sorry, something went wrong.
No branches or pull requests
Hello, I'm trying to run Pop-up table filter locally. I get error:
Uncaught Error: Could not instantiate TableFilter: HTML table
DOM element not found.
at new TableFilter (tablefilter.js:1)
at tablefilter.html:7
Code below. I don't know what I'm missing. Could be something really stupid. Any help will be highly appreciated.
var tf = new TableFilter('demo', 1, {
base_path: 'tablefilter/',
col_1: 'select',
col_2: 'checklist',
col_3: 'select',
popup_filters: true,
auto_filter: {
delay: 1100 //milliseconds
},
alternate_rows: true,
rows_counter: true,
btn_reset: true,
loader: true,
mark_active_columns: true,
highlight_keywords: true,
no_results_message: true,
col_types: [
'string', 'string', 'number',
'number', 'number', 'number',
'number', 'number', 'number'
],
col_widths: [
'150px', '100px', '100px',
'70px', '100px', '70px',
'70px', '60px', '60px'
],
extensions: [{
name: 'sort',
images_path: 'https://unpkg.com/tablefilter@latest/dist/tablefilter/style/themes/'
}]
});
tf.init();
TableFilter starter
The text was updated successfully, but these errors were encountered: