react-tabulator
Advanced tools
Comparing version 0.6.10 to 0.6.11
@@ -1,3 +0,5 @@ | ||
## [0.6.10] - 2018-11-12 | ||
## [0.6.11] - 2018-11-13 | ||
### Added | ||
- MultiValuesFormatter | ||
### Changed | ||
@@ -4,0 +6,0 @@ - BREAKING: moved "css" directory out of "lib" - usage: import "react-tabulator/styles.css"; |
@@ -20,2 +20,3 @@ "use strict"; | ||
var DateEditor_1 = require("./editors/DateEditor"); | ||
var MultiValuesFormatter_1 = require("./formatters/MultiValuesFormatter"); | ||
var columns = [ | ||
@@ -30,9 +31,18 @@ { title: 'Name', field: 'name', width: 150 }, | ||
var data = [ | ||
{ id: 1, name: 'Oli Bob', age: '12', color: 'red', dob: '01/01/1980', rating: 5, passed: true }, | ||
{ id: 2, name: 'Mary May', age: '1', color: 'green', dob: '12/05/1989', rating: 4, passed: true }, | ||
{ id: 1, name: 'Oli Bob', age: '12', color: 'red', dob: '01/01/1980', rating: 5, passed: true, pets: ['cat', 'dog'] }, | ||
{ id: 2, name: 'Mary May', age: '1', color: 'green', dob: '12/05/1989', rating: 4, passed: true, pets: ['cat'] }, | ||
{ id: 3, name: 'Christine Lobowski', age: '42', color: 'green', dob: '10/05/1985', rating: 4, passed: false }, | ||
{ id: 4, name: 'Brendon Philips', age: '125', color: 'red', dob: '01/08/1980', rating: 4.5, passed: true }, | ||
{ id: 5, name: 'Margret Marmajuke', age: '16', color: 'yellow', dob: '07/01/1999', rating: 4, passed: false }, | ||
{ id: 6, name: 'Van Ng', age: '37', color: 'green', dob: '06/10/1982', rating: 4, passed: true }, | ||
{ id: 7, name: 'Duc Ng', age: '37', color: 'yellow', dob: '10/10/1982', rating: 4, passed: true } | ||
{ | ||
id: 6, | ||
name: 'Van Ng', | ||
age: '37', | ||
color: 'green', | ||
dob: '06/10/1982', | ||
rating: 4, | ||
passed: true, | ||
pets: ['dog', 'fish'] | ||
}, | ||
{ id: 7, name: 'Duc Ng', age: '37', color: 'yellow', dob: '10/10/1982', rating: 4, passed: true, pets: ['dog'] } | ||
]; | ||
@@ -53,3 +63,3 @@ // Editable Example: | ||
{ title: 'Date Of Birth', field: 'dob', editor: DateEditor_1["default"], editorParams: { format: 'MM/dd/yyyy' } }, | ||
{ title: 'Rating', field: 'rating', align: 'center', formatter: 'star', editor: true }, | ||
{ title: 'Pets', field: 'pets', formatter: MultiValuesFormatter_1["default"] }, | ||
{ title: 'Passed?', field: 'passed', align: 'center', formatter: 'tickCross', editor: true } | ||
@@ -56,0 +66,0 @@ ]; |
{ | ||
"name": "react-tabulator", | ||
"version": "0.6.10", | ||
"version": "0.6.11", | ||
"description": "React Tabulator component", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -28,2 +28,3 @@ # react-tabulator | ||
- React Cell Editors: DateEditor, etc. | ||
- React Cell Formatters: MultiValuesFormatter, etc. | ||
- React Filters (TBD) | ||
@@ -36,3 +37,3 @@ | ||
import 'react-tabulator/styles.css'; // default theme | ||
import 'react-tabulator/lib/styles.css'; // default theme | ||
import { ReactTabulator } from 'react-tabulator'; // for React 15.x, use import { React15Tabulator } | ||
@@ -54,3 +55,3 @@ | ||
$ yarn test Run tests using jest-puppeteer (with headless Chrome) | ||
$ npm run test Run tests using jest-puppeteer (with headless Chrome) | ||
``` | ||
@@ -57,0 +58,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1156372
61
14048
66