-
-
Notifications
You must be signed in to change notification settings - Fork 1
Getting stated
Nathanael CHERRIER edited this page Nov 19, 2016
·
2 revisions
Add a script tag on your HTML page to import Nativatable class.
<body>
<div id="tableid"></div>
<script src="nativetable.min.js"></script>
</body>In your javascript file create a Nativatable element.
let nt= new Nativetable('tableid', {
sources: data, // list of object to show
columns: [ // list of columns to show
"id",
"name",
"age"
],
pagination: {
maxLength: 5 // Paginate data with 5 elements by page
}
});For more init options, take a look at the API