# NMR jsGrid

Contributors: mirceatm
Donate link: https://paypal.me/mirceatm
Tags: JSGrid table jquery javascript ajax pagination
Requires at least: 5.2
Tested up to: 6.9.4
Stable tag: 2.0.0
License: GPLv2 or later
License URI: <https://www.gnu.org/licenses/gpl-2.0.html>

== Description ==

Add jsGrid http://js-grid.com tables to your website using the shortcode: `[nmr_jsgrid id='your-grid-name']`.

Data grids or tables have configurable columns, filters, edit, update and delete functionality.
Configuration is performed in the WordPress admin. Tables support AJAX pagination to avoid full page reloads.

**This is the free version of NMR jsGrid.** For unlimited grids and all features, see [NMR jsGrid Pro](https://namir.ro/downloads/nmr-jsgrid-pro/).

= Free version limits =

* Maximum 10 grids
* `select` field type is read-only in the column editor (Pro only)
* Build Columns from Data Source is disabled (Pro only)

= Pro version =

[NMR jsGrid Pro](https://namir.ro/downloads/nmr-jsgrid-pro/) adds:

* Unlimited grids
* `select` field type with custom items, value field, and text field
* Build Columns from Data Source — auto-detect columns from SQL, static, or remote data
* Priority support

= Usage =

Go to Admin → NMR jsGrid → Add New. Pick a data source, build columns with the visual editor, configure display options, then embed with the shortcode `[nmr_jsgrid id='your-grid-name']`.

= Data source types =

* **Remote** — AJAX calls to a custom WordPress action you provide. Set the endpoint URL and action name.
* **Static** — paste a JSON array directly; no back-end needed.
* **SQL** — write a `SELECT` query; the plugin handles pagination, filtering, insert, update, and delete automatically.

= Display options =

* `Height` / `Width` — `auto`, percent (`80%`), or pixels (`400`)
* `Paging`, `Editing`, `Sorting`, `Autoload`, `Deleting`, `Filtering`, `Inserting`, `Page size` — toggle grid behaviours
* `Pager format` — e.g. `Pages: {first} {prev} {pages} {next} {last} &nbsp;&nbsp; {pageIndex} of {pageCount}`
* `Page buttons` — number of page buttons shown (5 is a good default)

If you enjoy using *NMR jsGrid* and find it useful, please consider [__making a donation__](https://paypal.me/mirceatm).

== Installation ==

1. Upload the entire `nmr-jsgrid` folder to the `/wp-content/plugins/` directory.
1. Activate the plugin through the 'Plugins' menu in WordPress.

== Frequently Asked Questions ==

= How do I embed a grid in a post or page? =

Use the shortcode `[nmr_jsgrid id='your-grid-name']` where `your-grid-name` matches the Name you gave the grid in the admin.

= What is the difference between the free and Pro versions? =

The free version supports up to 10 grids, does not support the `select` field type configuration, and does not include the Build Columns from Data Source feature. [NMR jsGrid Pro](https://namir.ro/downloads/nmr-jsgrid-pro/) removes all these limits.

== Screenshots ==

![NMR jsGrid 1](screenshot-1.jpg)
![NMR jsGrid 2](screenshot-2.jpg)

== Changelog ==

= 2.0.0 =

* Free version: limit 10 grids, Select field type and Build Columns from Data Source require Pro.

= 1.0.0 =

* Initial version.
