Datatables.net as a webcomponent
wct-datatables-net
Web component for datatables.net
Installation
npm install wct-datatables-net
Usage
Read API
Example of usage in a lit-element component :
import { LitElement, html } from 'lit-element'
import 'wct-datatables-net'
class ExampleApp extends LitElement {
render () {
return html`
<data-table .options=${{
'order': [[ 0, 'desc' ]],
'columns': [
{ title: 'name' },
{ title: 'position' },
{ title: 'salary' },
{ title: 'office' },
],
'data': [
['a1', 'b1', 'c1', 'd1'],
['a2', 'b2', 'c2', 'd2']
]
}}></data-table>
`
}
}
customElements.define('example-app', ExampleApp)
Also see example folder
Install
Framework Support
Browser Independent
Install with
Run the above npm command in your project folder.
If you have any issues installing, please
contact the author.
Release notes - Version 1.4.4
Dependencies
- bootstrap#^4.3.0
- datatables.net#^1.10.19
- datatables.net-bs4#^1.10.19
- jquery#^3.3.1
- lit-element#^2.0.1
- lit-html#^1.0.0
- popper.js#^1.14.7