24

Grid.js - Advanced table plugin

 3 years ago
source link: https://gridjs.io/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Grid.js Advanced Table Plugin

Grid.js is a Free and open-source HTML table plugin written in TypeScript. It works with most JavaScript frameworks, including React, Angular, Vue and VanillaJs.

Install Grid.js

You can install Grid.js in a few simple steps. Grid.js consists of two main files, the JavaScript part and the CSS part which renders the elements nicely.

1 Include the JavaScript and CSS

Grid.js is available on NPM and most CDNs

JavaScript

2 Call the render() method

The render() method binds and renders a Grid.js instance

new Grid({
columns: ['Name', 'Email'],
data: [
['John', '[email protected]'],
['Mike', '[email protected]']
}).render(document.getElementById('table'));

Recommend

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK