mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-06 07:47:04 +00:00
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:
committed by
Mohamed Hegazy
parent
565751df4d
commit
ade29a018c
Vendored
+7
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user