enumOptions and enum reader
This commit is contained in:
@@ -1,13 +1,14 @@
|
||||
/**
|
||||
* This file contains application-specific overrides and configuration
|
||||
* for the generic Admin Panel.
|
||||
*/
|
||||
export interface EnumOption {
|
||||
key: string;
|
||||
value: string | string[];
|
||||
}
|
||||
|
||||
export interface FieldOverride {
|
||||
displayField?: string | string[];
|
||||
display?: boolean;
|
||||
formatter?: (value: any) => string;
|
||||
filterType?: "autocomplete" | "multiselect" | "number-range" | "date-range";
|
||||
enumLabels?: Record<string, string>;
|
||||
}
|
||||
|
||||
export interface ResourceOverride {
|
||||
@@ -18,4 +19,5 @@ export interface ResourceOverride {
|
||||
mode?: "server" | "client";
|
||||
fields?: string[];
|
||||
};
|
||||
enumOption?: EnumOption;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user