gx-table
v1.0.0
Published
The easy to use, fully featured, interactive table JavaScript
Downloads
3
Maintainers
Readme
An easy to use interactive table generation JavaScript
Full documentation & demos can be found at: http://test.test.info
Features
Gx_table allows you to create interactive tables in seconds from any HTML Table, Javascript Array or JSON formatted data.
Simply include the library and the css in your project and you're away!
Setup
Setting up Gx_table could not be simpler.
Include the library and the css
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" >
<link rel="stylesheet" href="https://cdn.materialdesignicons.com/5.6.55/css/materialdesignicons.min.css">
<link rel="stylesheet" href="src/css/gx-table.css">
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"></script>
<script src="src/js/gx-table.js" ></script>
Create an element to hold the table
<div class="container">
....
......
</div>
Turn the element into a tabulator with some simple javascript
var table = $('.container').gxTable({
tableName: 'table Gx',
columns: [
"A1", "A2", "A3", "A4", "A5"
],
data: {
"R1-1585": {
A1: " R1 A1 ",
A3: " R1 A3 ",
A4: " R1 A4 ",
A5: " R1 A5 "
},
"R2-11185-45vb": {
A1: " R2 A1 ",
A2: " R2 A2 ",
A4: " R2 A4 ",
A5: " R2 A5 "
},
"R3-185-4542vb": {
A1: " R3 A1 ",
A2: " R3 A2 ",
A2: " R3 A3 ",
A4: " R3 A4 ",
A5: " R3 A5 "
}
}
});