mirror of
				https://github.com/inventree/InvenTree.git
				synced 2025-10-31 05:05:42 +00:00 
			
		
		
		
	[UI] Stored table state (#9902)
* Add useStoredTableState zustand * Store table page size in the zustand state * Store tablesorting data in zustand state * Actually provide records... * Transfer table names state * Store hidden columns too
This commit is contained in:
		| @@ -52,19 +52,16 @@ export type TableState = { | ||||
|   hasSelectedRecords: boolean; | ||||
|   setSelectedRecords: (records: any[]) => void; | ||||
|   clearSelectedRecords: () => void; | ||||
|   hiddenColumns: string[] | null; | ||||
|   setHiddenColumns: (columns: string[]) => void; | ||||
|   searchTerm: string; | ||||
|   setSearchTerm: (term: string) => void; | ||||
|   recordCount: number; | ||||
|   setRecordCount: (count: number) => void; | ||||
|   page: number; | ||||
|   setPage: (page: number) => void; | ||||
|   pageSize: number; | ||||
|   setPageSize: (pageSize: number) => void; | ||||
|   storedDataLoaded: boolean; | ||||
|   records: any[]; | ||||
|   setRecords: (records: any[]) => void; | ||||
|   updateRecord: (record: any) => void; | ||||
|   hiddenColumns: string[]; | ||||
|   setHiddenColumns: (columns: string[]) => void; | ||||
|   idAccessor?: string; | ||||
| }; | ||||
|   | ||||
		Reference in New Issue
	
	Block a user