Add example of server and client validation for React

This commit is contained in:
SteveSandersonMS
2015-12-15 12:47:52 +00:00
parent ef7e136f6e
commit 39f7f1649f
8 changed files with 113 additions and 3 deletions

View File

@@ -1,3 +1,12 @@
import React from 'react';
import { Link } from 'react-router';
class RowActionsComponent extends React.Component {
render() {
return <Link to={'/edit/' + this.props.rowData.id}>Edit</Link>;
}
}
var columnMeta = [
{
"columnName": "id",
@@ -40,6 +49,13 @@ var columnMeta = [
"order": 7,
"locked": false,
"visible": true
},
{
"columnName": "actions",
"order": 8,
"locked": true,
"visible": true,
"customComponent": RowActionsComponent
}
];