2
0
mirror of https://github.com/inventree/InvenTree.git synced 2025-12-18 18:28:18 +00:00

Table refactoring: (#10662)

- Display model type in the "view details" action
This commit is contained in:
Oliver
2025-10-24 15:55:43 +11:00
committed by GitHub
parent c4805504c0
commit 1fa607b96a
4 changed files with 37 additions and 8 deletions

View File

@@ -173,6 +173,7 @@ export type RowViewProps = RowAction & RowModelProps;
* @param barcodeActions : any[] - List of barcode actions
* @param tableFilters : TableFilter[] - List of custom filters
* @param tableActions : any[] - List of custom action groups
* @param detailAction: boolean - Enable detail action for each row (default = true)
* @param dataFormatter : (data: any) => any - Callback function to reformat data returned by server (if not in default format)
* @param rowActions : (record: any) => RowAction[] - Callback function to generate row actions
* @param onRowClick : (record: any, index: number, event: any) => void - Callback function when a row is clicked
@@ -204,6 +205,7 @@ export type InvenTreeTableProps<T = any> = {
rowExpansion?: DataTableRowExpansionProps<T>;
dataFormatter?: (data: any) => any;
rowActions?: (record: T) => RowAction[];
detailAction?: boolean;
onRowClick?: (record: T, index: number, event: any) => void;
onCellClick?: DataTableCellClickHandler<T>;
modelType?: ModelType;