Prometheus Entity Management API
    Preparing search index...
    interface FieldDescriptor<TEntity> {
        editControl?: (
            value: unknown,
            onChange: (v: unknown) => void,
            entity: Partial<TEntity>,
        ) => ReactNode;
        field: string;
        hideOnCreate?: boolean;
        hideOnEdit?: boolean;
        hint?: string;
        label: string;
        options?: { label: string; value: string }[];
        placeholder?: string;
        readonlyOnEdit?: boolean;
        render?: (value: unknown, entity: TEntity) => ReactNode;
        required?: boolean;
        type: FieldType;
    }

    Type Parameters

    • TEntity

    Hierarchy (View Summary)

    Index
    editControl?: (
        value: unknown,
        onChange: (v: unknown) => void,
        entity: Partial<TEntity>,
    ) => ReactNode
    field: string
    hideOnCreate?: boolean
    hideOnEdit?: boolean
    hint?: string
    label: string
    options?: { label: string; value: string }[]
    placeholder?: string
    readonlyOnEdit?: boolean
    render?: (value: unknown, entity: TEntity) => ReactNode
    required?: boolean
    type: FieldType