Add customEditor property (#14857)

Hi!

I was having this issue while using the library:

```
ERROR in [at-loader] frontend/src/components/modals/Upload.tsx:538:40
    TS2339: Property 'customEditor' does not exist on type 'IntrinsicAttributes & IntrinsicClassAttributes<Component<TableHeaderColumnProps, ComponentState>>...'.
```

It seems it is missing from the Definition file, so I just added it :).

Hope it helps!
This commit is contained in:
Rémi Marenco
2017-03-10 14:46:52 -08:00
committed by Mohamed Hegazy
parent 565751df4d
commit ade29a018c
+7
View File
@@ -475,6 +475,13 @@ export interface TableHeaderColumnProps extends Props<TableHeaderColumn> {
This function taking one arguments: order which present the sort order currently.
*/
caretRender?: Function;
/**
Give an Object like following to able to customize your own editing component.
This Object should contain these two property:
getElement(REQUIRED): Accept a callback function and take two arguments: onUpdate and props.
customEditorParameters: Another extra data for custom cell edit component.
*/
customEditor?: {getElement: (onUpdate: any, props: any) => ReactElement<any>, customEditorParameters?: Object} ;
/**
To customize the column. This callback function should return a String or a React Component.
In addition, this function taking two argument: cell and row.