protable
v0.1.3
Published
A (non-jQuery) Data Table alternative. Written with modern Javascript.
Downloads
45
Maintainers
Readme
ProTable
A data-table alternative written with modern javascript.
Docs
Open Full Documentation.
Basic Usage
Installation
npm i protable
Create From Array
HTML container:
<div id="table-from-array"></div>
Js:
import { fromArray } from 'protable'
fromArray('#table-from-array', [
{
name: 'Nurul Huda',
relationship: 'Married',
blog: 'https://jagongoding.com'
},
{
name: 'Abdullah Wahid',
city: 'Bangkalan'
},
{
city: 'Lamongan',
name: 'Lendis Fabri',
blog: 'https://kopiding.in'
},
{
name: 'Elmo Bachtiar',
relationship: 'Single'
}
])
Table Output:
Create Complex Table From Array
import { fromArray } from 'protable'
fromArray('#table-from-array-2', [
{
name: 'Nurul Huda',
birth: {
day: 1,
month: 'January',
year: 1996
},
city: 'Surabaya'
},
{
name: 'Wahid Abdullah',
birth: {
day: 2,
month: 'February',
year: 1996
},
city: 'Bangkalan'
},
{
name: 'Lendis Fabri',
birth: {
day: 3,
month: 'Maret',
year: 1996
},
city: 'Lamongan'
}
])
Table Output:
License
The Pro Table library is open-source software licensed under the MIT license.