configuration for how fields look and EnhancedTable component for enhanced table display
This commit is contained in:
@@ -14,9 +14,12 @@ export interface ResourceField {
|
||||
type: FieldType;
|
||||
label: string;
|
||||
required?: boolean;
|
||||
options?: string[]; // for enum
|
||||
schema?: Record<string, ResourceField>; // for object or array items
|
||||
options?: string[];
|
||||
readOnly?: boolean;
|
||||
schema?: Record<string, ResourceField>;
|
||||
displayField?: string;
|
||||
formatter?: (value: any) => string;
|
||||
relation?: string; // Name of the target resource
|
||||
}
|
||||
|
||||
export interface ResourceConfig {
|
||||
|
||||
Reference in New Issue
Block a user