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
- Host: GitHub
- URL: https://github.com/grid-js/gridjs-jquery
- Owner: grid-js
- License: mit
- Created: 2020-06-05T07:19:47.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2021-09-10T01:59:18.000Z (over 4 years ago)
- Last Synced: 2025-04-20T22:46:59.082Z (about 1 year ago)
- Language: TypeScript
- Size: 390 KB
- Stars: 10
- Watchers: 2
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
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