Comments (3)
Following link from the demo works for me as a workaround:
https://unpkg.com/vanilla-datatables@latest/dist/vanilla-dataTables.min.js
from simple-datatables.
Hi, I just encounter same problem.
I refer to this writing from demo/umd.html
Just add simpleDatatables.
in front of DataTable
.
But it still can't solve problem -- if I follow the readme.md
tutorial:
const myTable = document.querySelector("#myTable");
const dataTable = new simpleDatatables.DataTable(myTable);
It'll report
Uncaught TypeError: Cannot read property 'layout' of undefined
at new DataTable (simple-datatables.js:8)
Finally I tried this (here is original version), it works for me!
let datatable = new simpleDatatables.DataTable("#myTable", {
plugins: {
myPlugin: {
// Prevent plugin from being initialised
enabled: false
}
}
});
from simple-datatables.
fixed in latest version
from simple-datatables.
Related Issues (20)
- Support for colgroup
- [BUG] init() method has no options parameter anymore? HOT 6
- events cannot be fired in the chrome environment HOT 2
- [BUG] A form field element should have an id or name attribute - HTML validity
- [BUG] Can't sort numeric columns
- [BUG] Columns.hide() and show() don't work with integer values
- Responsive Mobile HOT 8
- [BUG]`TypeError: Cannot read properties of undefined (reading 'settings')` at re insert table in version ^9.0.0 HOT 4
- [Feature Request] Ability to hide rows HOT 6
- [BUG] searchQuerySeparator not working via CDN HOT 2
- [BUG] columns property not properly generated HOT 2
- [BUG] Destroying and removing the table element is not working correctly HOT 1
- [BUG] data-order HOT 1
- [BUG] attribute data-sort not working in <th> HOT 2
- Sorting with empty cells doesn't work correctly.[BUG] HOT 2
- Input Listeners not working on subsequent pages [BUG] HOT 2
- [BUG] Latest release (9.0.4) is not open source and changes are not visible in GitHub HOT 2
- Support AJAX/Pagination+Search+Sort HOT 2
- How to know which cell is saved
- Support JSON-loading with selective headers HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from simple-datatables.