UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

28 lines (27 loc) 1.49 kB
import React from "react"; import { Entity, EntityCollection } from "../../../../types"; import { CustomFieldValidator } from "../../../../form/validation"; import { OnCellValueChangeParams } from "../../../common"; interface PopupFormFieldProps<M extends Record<string, any>> { customFieldValidator?: CustomFieldValidator; path: string; entityId: string; tableKey: string; propertyKey?: Extract<keyof M, string>; collection?: EntityCollection<any>; cellRect?: DOMRect; open: boolean; onClose: () => void; container: HTMLElement | null; /** * Callback when the value of a cell has been edited * @param params */ onCellValueChange?: (params: OnCellValueChangeParams<any, any>) => Promise<void> | void; } export declare function PopupFormField<M extends Record<string, any>>(props: PopupFormFieldProps<M>): React.JSX.Element | null; export declare function PopupFormFieldLoading<M extends Record<string, any>>({ tableKey, entityId, customFieldValidator, propertyKey, collection: inputCollection, path, cellRect, open, onClose, onCellValueChange, container }: PopupFormFieldProps<M>): React.JSX.Element | null; export declare function PopupFormFieldInternal<M extends Record<string, any>>({ tableKey, entityId, customFieldValidator, propertyKey, collection: inputCollection, path, cellRect, open, onClose, onCellValueChange, container, entity }: PopupFormFieldProps<M> & { entity?: Entity<M>; }): React.JSX.Element; export {};