AG-2914 DOCS - Add docs around react hooks with editors.

This commit is contained in:
Sean Landsman
2019-09-23 14:29:21 +01:00
parent 5a26863aff
commit b9b2b03a6b
3 changed files with 25 additions and 3 deletions

View File

@@ -1,15 +1,19 @@
import React from "react";
import PriceRenderer from "./PriceRenderer";
import PriceEditor from "./PriceEditor";
export const initialState = {
rowData: [],
columnDefs: [
{
field: 'symbol'
field: 'symbol',
editable: true
},
{
field: 'price',
cellClass: 'align-right',
editable: true,
cellEditorFramework: PriceEditor,
cellRendererFramework: PriceRenderer
}
]