Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

react-tabulator

Package Overview
Dependencies
Maintainers
1
Versions
89
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-tabulator - npm Package Compare versions

Comparing version 0.4.1 to 0.4.5

4

CHANGELOG.md

@@ -1,2 +0,2 @@

## [0.4.1] - 2018-10-11
## [0.4.5] - 2018-10-11

@@ -7,3 +7,3 @@ ### Added

- example of editable table.
- yarn test
- "yarn test" using Jest, Enzyme.
- .travis.yml

@@ -10,0 +10,0 @@

@@ -22,18 +22,22 @@ "use strict";

{ title: 'Favourite Color', field: 'col' },
{ title: 'Date Of Birth', field: 'dob', align: 'center' }
{ title: 'Date Of Birth', field: 'dob', align: 'center' },
{ title: 'Rating', field: 'rating', align: 'center', formatter: 'star' },
{ title: 'Passed?', field: 'passed', align: 'center', formatter: 'tickCross' }
];
var data = [
{ id: 1, name: 'Oli Bob', age: '12', col: 'red', dob: '' },
{ id: 2, name: 'Mary May', age: '1', col: 'blue', dob: '14/05/1989' },
{ id: 3, name: 'Christine Lobowski', age: '42', col: 'green', dob: '22/05/1985' },
{ id: 4, name: 'Brendon Philips', age: '125', col: 'orange', dob: '01/08/1980' },
{ id: 5, name: 'Margret Marmajuke', age: '16', col: 'yellow', dob: '31/01/1999' },
{ id: 6, name: 'Van Ng', age: '37', col: 'green', dob: '06/15/1982' },
{ id: 7, name: 'Duc Ng', age: '37', col: 'yellow', dob: '10/15/1982' }
{ id: 1, name: 'Oli Bob', age: '12', col: 'red', dob: '', rating: 5, passed: true },
{ id: 2, name: 'Mary May', age: '1', col: 'blue', dob: '14/05/1989', rating: 4, passed: true },
{ id: 3, name: 'Christine Lobowski', age: '42', col: 'green', dob: '22/05/1985', rating: 4, passed: false },
{ id: 4, name: 'Brendon Philips', age: '125', col: 'orange', dob: '01/08/1980', rating: 4.5, passed: true },
{ id: 5, name: 'Margret Marmajuke', age: '16', col: 'yellow', dob: '31/01/1999', rating: 4, passed: false },
{ id: 6, name: 'Van Ng', age: '37', col: 'green', dob: '06/15/1982', rating: 4, passed: true },
{ id: 7, name: 'Duc Ng', age: '37', col: 'yellow', dob: '10/15/1982', rating: 4, passed: true }
];
var editableColumns = [
{ title: 'Name', field: 'name', width: 150, editor: 'input' },
{ title: 'Name', field: 'name', width: 150, editor: 'input', headerFilter: 'input' },
{ title: 'Age', field: 'age', align: 'left', formatter: 'progress', editor: 'progress' },
{ title: 'Favourite Color', field: 'col', editor: 'input' },
{ title: 'Date Of Birth', field: 'dob', align: 'center', editor: 'input' }
{ title: 'Date Of Birth', field: 'dob', align: 'center', editor: 'input' },
{ title: 'Rating', field: 'rating', align: 'center', formatter: 'star', editor: true },
{ title: 'Passed?', field: 'passed', align: 'center', formatter: 'tickCross', editor: true }
];

@@ -55,3 +59,3 @@ var default_1 = /** @class */ (function (_super) {

height: 150,
resizableRows: true
movableRows: true
};

@@ -61,3 +65,7 @@ return (React.createElement("div", null,

React.createElement("h3", null, "Editable Table"),
React.createElement(ReactTabulator_1["default"], { columns: editableColumns, data: data })));
React.createElement(ReactTabulator_1["default"], { columns: editableColumns, data: data }),
React.createElement("p", null,
React.createElement("a", { href: "https://github.com/ngduc/react-tabulator", target: "_blank" }, "Back to: Github Repo: react-tabulator")),
React.createElement("p", null,
React.createElement("a", { href: "http://tabulator.info/examples/4.0", target: "_blank" }, "More Tabulator's Examples"))));
};

@@ -64,0 +72,0 @@ return default_1;

{
"name": "react-tabulator",
"version": "0.4.1",
"version": "0.4.5",
"description": "React Tabulator component",

@@ -21,3 +21,3 @@ "main": "lib/index.js",

"dev:watch": "tsc --outDir ./lib --jsx react --watch ./src/index.tsx",
"test": "nwb test-react",
"test": "NODE_ENV=test jest --config=./jest-config.js --verbose",
"test:coverage": "nwb test-react --coverage",

@@ -34,3 +34,4 @@ "test:watch": "nwb test-react --server",

"tabulator",
"table"
"table",
"component"
],

@@ -54,3 +55,8 @@ "author": "Duc Nguyen",

"awesome-typescript-loader": "^5.2.1",
"babel-jest": "^23.6.0",
"babel-plugin-transform-es2015-modules-commonjs": "^6.26.2",
"concurrently": "^4.0.1",
"enzyme": "^3.7.0",
"enzyme-adapter-react-16": "^1.6.0",
"jest": "^23.6.0",
"nwb": "0.23.x",

@@ -57,0 +63,0 @@ "react": "^16.5.2",

@@ -7,3 +7,3 @@ # react-tabulator

- Live Demo: [Codesandbox](https://codesandbox.io/s/y3pllw3oj9)
- Live Demo: [Codesandbox](https://codesandbox.io/s/oxmj02v696)

@@ -10,0 +10,0 @@ ### 🌟 Features

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc