Skip to content

Commit a441d6d

Browse files
committed
minor updates
1 parent 3351025 commit a441d6d

6 files changed

+59
-137
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,4 @@ publish/
1414
!package.json
1515
!package-lock.json
1616
!tsconfig.json
17+
coverage/

.npmignore

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,7 @@
99
/.github
1010
gulpfile.js
1111
tsconfig.json
12-
webpack.config.js
12+
webpack.config.js
13+
coverage/
14+
dist/src
15+
dist/test

README.md

+10-8
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ It attempts to be backward compatible with `react-json-table`.
2020

2121
### Additional features
2222

23-
- **[Props](#props)**
23+
- [Props](#props)
2424
- `excludeColumns`
2525
- `theadClassName`
2626
- `caption`
27+
<br/>
28+
- [Column grouping](#column-grouping)
2729

28-
- #### [Column grouping](#column-grouping)
30+
- [Support for complex JSON objects](#table-supports-complex-json-objects)
2931

30-
- #### [Support for complex JSON objects](#table-supports-complex-json-objects)
31-
32-
- #### Support for duplicate `id` fields
32+
- Support for duplicate `id` fields in JSON input - correctly renders `data-key` element.
3333

3434
## Installation
3535
```bash
@@ -55,7 +55,7 @@ var items = [
5555

5656
ReactDOM.render(<JsonTable rows = {items} />, document.body);
5757
```
58-
**JSFiddle demo: https://jsfiddle.net/agracio/vx1yfna0/**
58+
**https://codepen.io/agracio/pen/YPzyaxW**
5959

6060
## Usage
6161

@@ -103,7 +103,7 @@ var columns = [
103103

104104
ReactDOM.render(<JsonTable rows = {rows} columns = {columns}/>, document.body);
105105
```
106-
**JSFiddle demo: https://jsfiddle.net/agracio/2dd7sxxs/**
106+
**https://codepen.io/agracio/pen/azbNrWW**
107107

108108
#### Table supports complex JSON objects
109109

@@ -125,6 +125,8 @@ var columns = [
125125
ReactDOM.render(<JsonTable rows = {rows} columns = {columns}/>, document.body);
126126
```
127127

128+
**https://codepen.io/agracio/pen/bNGpyqJ**
129+
128130
### Column grouping
129131

130132
Columns can be grouped under same header by specifying `group` column property.
@@ -151,7 +153,7 @@ var columns = [
151153
ReactDOM.render(<JsonTable rows = {rows} columns = {columns}/>, document.body);
152154
```
153155

154-
**JSFiddle demo: https://jsfiddle.net/agracio/sstjzy3L/**
156+
**https://codepen.io/agracio/pen/MYWydoK**
155157

156158
### Exclude columns
157159

gulpfile.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
const { series } = require('gulp');
2-
const { spawnSync, exec } = require('child_process');
2+
const { exec } = require('child_process');
33
const { readdirSync, rmSync, copyFileSync } = require('fs');
44
const chalk = require('chalk');
55

package-lock.json

+41-125
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "ts-react-json-table",
3-
"version": "0.1.4",
3+
"version": "0.1.5",
44
"description": "",
55
"main": "dist/grid.js",
66
"types": "ts-react-json-table.d.ts",
77
"scripts": {
8-
"build": "gulp build"
8+
"build": "tsc"
99
},
1010
"repository": {
1111
"type": "git",

0 commit comments

Comments
 (0)