Expose table state from table manager
Summary: Project: https://docs.google.com/document/d/1SbFrpvfIShX5npANNa1AkgHliR1M-VMLW5Q9RhREt94/edit Reviewed By: antonk52 Differential Revision: D45395107 fbshipit-source-id: 8ca3639a109e40b26acead8bb4b0eace68ac9bce
This commit is contained in:
committed by
Facebook GitHub Bot
parent
424985a75a
commit
65daaf80f1
@@ -395,6 +395,7 @@ export type DataTableManager<T> = {
|
||||
sortColumn(column: keyof T, direction?: SortDirection): void;
|
||||
setSearchValue(value: string, addToHistory?: boolean): void;
|
||||
dataView: _DataSourceView<T, T[keyof T]>;
|
||||
state: Readonly<DataManagerState<T>>;
|
||||
toggleSearchValue(): void;
|
||||
toggleHighlightSearch(): void;
|
||||
setSearchHighlightColor(color: string): void;
|
||||
@@ -478,6 +479,7 @@ export function createDataTableManager<T>(
|
||||
dispatch({type: 'removeColumnFilter', column, value});
|
||||
},
|
||||
dataView,
|
||||
state: stateRef.current,
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user