diff --git a/.gitignore b/.gitignore
index 8225baa..d0c9565 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/node_modules
/dist
+package-lock.json
\ No newline at end of file
diff --git a/README.md b/README.md
index 417dc60..5ad9426 100644
--- a/README.md
+++ b/README.md
@@ -1,29 +1,18 @@
-
ag-Grid React Example
==============
-Examples of running ag-Grid inside React application.
-
-See [www.ag-grid.com](http://www.ag-grid.com) for an overview and full documentation.
-
-Frameworks Supported
-====================
-Framework specific Getting Started guides:
-[Angular 1](https://www.ag-grid.com/best-angularjs-data-grid/) | [Angular 2](https://www.ag-grid.com/best-angular-2-data-grid/) | [Aurelia](https://www.ag-grid.com/best-aurelia-data-grid/)
-[Javascript](https://www.ag-grid.com/best-javascript-data-grid/) | [React](https://www.ag-grid.com/best-react-data-grid/) | [TypeScript](https://www.ag-grid.com/ag-grid-typescript-webpack-2/)
-[VueJS](https://www.ag-grid.com/best-vuejs-data-grid/) | [Web Components](https://www.ag-grid.com/best-web-component-data-grid/)
-
-There are two examples:
+## Examples
1. standard - shows a typical grid demonstrating many ag-Grid features
2. large - shows a very large grid (767 columns and 1,000 rows) using React cell renderers
+See [www.ag-grid.com](http://www.ag-grid.com) for full documentation and examples.
+
Building
==============
To build:
- `npm install`
-- `npm install webpack -g`
- `npm run examples`, `npm run large` or `npm run trader`
- navigate to localhost:8080
diff --git a/package.json b/package.json
index 2615a65..7a59cf2 100644
--- a/package.json
+++ b/package.json
@@ -1,6 +1,6 @@
{
"name": "ag-grid-react-example",
- "version": "18.0.0",
+ "version": "18.1.0",
"description": "Example Reach applicaiton using ag-Grid.",
"main": "dist/ag-grid-react-example.js",
"scripts": {
@@ -17,14 +17,13 @@
"build-dashboard": "webpack --config config/webpack.config.trader.js --progress --profile --bail",
"build-all": "npm run build-examples && npm run build-dashboard",
"build": "npm run clean && npm run mkdirs && npm run build-all && npm run copy",
- "copy-to-docs": "ncp dist/examples ../ag-grid-docs/src/framework-examples/react-examples/examples && ncp dist/trader ../ag-grid-docs/src/framework-examples/react-examples/trader",
- "build-to-docs": "npm run build && npm run copy-to-docs",
"start": "npm run examples"
},
"repository": {
"type": "git",
"url": "https://github.com/ag-grid/ag-grid-react-example.git"
},
+ "private": true,
"keywords": [
"react",
"grid",
@@ -58,9 +57,9 @@
"typescript": "2.3.x"
},
"dependencies": {
- "ag-grid": "^18.0.0",
- "ag-grid-enterprise": "^18.0.0",
- "ag-grid-react": "^18.0.0",
+ "ag-grid": "^18.1.0",
+ "ag-grid-enterprise": "^18.1.0",
+ "ag-grid-react": "^18.1.0",
"bootstrap": "3.3.7",
"d3": "4.9.1",
"file-loader": "0.11.1",
diff --git a/src-examples/App.jsx b/src-examples/App.jsx
index 713e0f4..4207bf1 100644
--- a/src-examples/App.jsx
+++ b/src-examples/App.jsx
@@ -7,12 +7,12 @@ import RichGridDeclarativeExample from "./richGridDeclarativeExample/RichGridDec
import SimpleReduxDynamicExample from "./simpleReduxDynamicComponentExample/SimpleReduxExample";
const SideBar = () => (
-
-
- Rich Grid with Declarative Markup
- Simple Redux Dynamic Component Example
-
-
+
+
+ Rich Grid with Declarative Markup
+ Simple Redux Dynamic Component Example
+
+
);
class App extends Component {
diff --git a/src-examples/NavItem.jsx b/src-examples/NavItem.jsx
index ec6cdd6..f448d45 100644
--- a/src-examples/NavItem.jsx
+++ b/src-examples/NavItem.jsx
@@ -1,6 +1,6 @@
import React from 'react'
import * as PropTypes from 'prop-types';
-import {Route, Link} from 'react-router-dom'
+import {Link, Route} from 'react-router-dom'
// for bootstrap li active functionality
export default function NavItem({children, to, exact}) {
diff --git a/src-examples/index.js b/src-examples/index.js
index fe54af5..fd6b6a0 100644
--- a/src-examples/index.js
+++ b/src-examples/index.js
@@ -5,7 +5,7 @@ import {render} from "react-dom";
import {BrowserRouter} from "react-router-dom";
import "ag-grid/dist/styles/ag-grid.css";
-import "ag-grid/dist/styles/theme-fresh.css";
+import "ag-grid/dist/styles/ag-theme-balham.css";
import "../node_modules/bootstrap/dist/css/bootstrap.css";
import App from "./App";
diff --git a/src-examples/richGridDeclarativeExample/ProficiencyFilter.jsx b/src-examples/richGridDeclarativeExample/ProficiencyFilter.jsx
index b2d2900..2468cf7 100644
--- a/src-examples/richGridDeclarativeExample/ProficiencyFilter.jsx
+++ b/src-examples/richGridDeclarativeExample/ProficiencyFilter.jsx
@@ -54,7 +54,7 @@ export default class ProficiencyFilter extends React.Component {
PROFICIENCY_NAMES.forEach((name) => {
const selected = this.state.selected === name;
rows.push(
-
+
-
+
-
+
+
-
-
-
+
+
+
-
-
+
+
-
-
-
+
+
+
@@ -213,7 +238,8 @@ export default class RichGridDeclarativeExample extends Component {
-
This example demonstrates many features of ag-Grid, with Grid and Column Definition defined declaratively (i.e. with markup).
+
This example demonstrates many features of ag-Grid, with Grid and Column Definition
+ defined declaratively (i.e. with markup).
Select All/Clear Selection: Select or Deselect
All
Rows
diff --git a/src-examples/simpleReduxDynamicComponentExample/GridComponent.jsx b/src-examples/simpleReduxDynamicComponentExample/GridComponent.jsx
index 158dd9e..068608b 100644
--- a/src-examples/simpleReduxDynamicComponentExample/GridComponent.jsx
+++ b/src-examples/simpleReduxDynamicComponentExample/GridComponent.jsx
@@ -39,7 +39,7 @@ class GridComponent extends Component {
render() {
return (
+ className="ag-theme-balham">
Simple Redux Example using Connected React Components
-
-
+
+
)
diff --git a/src-examples/simpleReduxDynamicComponentExample/gridDataActions.jsx b/src-examples/simpleReduxDynamicComponentExample/gridDataActions.jsx
index fea6f2d..c955838 100644
--- a/src-examples/simpleReduxDynamicComponentExample/gridDataActions.jsx
+++ b/src-examples/simpleReduxDynamicComponentExample/gridDataActions.jsx
@@ -4,6 +4,7 @@ export function updateRowData(rowData) {
rowData
}
}
+
export function setCurrency(currencySymbol, exchangeRate) {
return {
type: 'CURRENCY_CHANGED',