An open API service indexing awesome lists of open source software.

https://github.com/grid-js/gridjs-jquery

Grid.js jQuery integration
https://github.com/grid-js/gridjs-jquery

Last synced: about 1 year ago
JSON representation

Grid.js jQuery integration

Awesome Lists containing this project

README

          

# Grid.js jQuery

JQuery wrapper for [Grid.js](https://gridjs.io/)

## Install

Include jQuery and gridjs-jquery in the `` tag:

```html

```

or install using NPM:

```bash
npm install --save gridjs-jquery
```

**Note**: `gridjs-jquery` contains Grid.js package as well. You don't need to install it separately.

## Usage

Select your wrapper and call `Grid`:

```js
$("div#wrapper").Grid({
columns: ['Name', 'Age', 'Email'],
data: [
['John', 25, 'john@k.com'],
['Mark', 59, 'mark@e.com'],
// ...
],
});
```

Live example: https://codesandbox.io/s/gridjs-jquery-jq4zf

Grid.js can also convert an HTML table. Simply select the table with jQuery
and call `Grid`:

```js
$("table#myTable").Grid();
```

You can pass all Grid.js configs to the `Grid` function.
See [Grid.js Config](https://gridjs.io/docs/config) for more details.

## License

MIT