@types/react-table onFetchData definition updated and pages added to ControlledStateOverrideProps (#23141)

* onFetchData definition updated and pages added to ControlledStateOverrideProps

* .tsx alignment
This commit is contained in:
koprinkov
2018-01-29 22:28:45 +02:00
committed by Sheetal Nandi
parent 7968b99ad1
commit af63181104
2 changed files with 6 additions and 2 deletions

View File

@@ -167,7 +167,7 @@ export interface TableProps extends
PadRowComponent: () => React.ReactNode;
/** Server-side callbacks */
onFetchData: () => void;
onFetchData: (state: any, instance: any) => void;
}
export interface ControlledStateOverrideProps {
@@ -177,6 +177,9 @@ export interface ControlledStateOverrideProps {
/** Default: undefined */
pageSize: number | undefined;
/** Default: undefined */
pages: number | undefined;
/** Default: undefined */
sorting: number;

View File

@@ -93,6 +93,7 @@ const Component = (props: {}) => {
PadRowComponent={() => <span>&nbsp;</span>}
page={undefined}
pageSize={undefined}
pages={undefined}
sorted={[]}
filtered={[]}
resized={[]}
@@ -106,7 +107,7 @@ const Component = (props: {}) => {
indexKey='_index'
groupedByPivotKey='_groupedByPivot'
className=''
onFetchData={() => null}
onFetchData={(state, instance) => null}
style={{}}
column={{
Cell: undefined,