DeleteActionProps

Props for DeleteAction component

Definition

export interface DeleteActionProps extends Omit<DeleteActionParams, 'model' | 'key'> {
    /**
     * Model name in format "App.Model" (e.g., "Location.Location")
     */
    model: string;

    /**
     * Primary key of the object to delete
     */
    objectKey: string | number;

    /**
     * Render function that receives the delete handler
     * This allows you to use your own button/link component
     */
    children: (deleteHandler: () => Promise<void>) => React.ReactNode;
}

Usage

Last updated