UNPKG

@skbkontur/db-viewer-ui

Version:

Database Viewer with custom configuration

13 lines (12 loc) 807 B
import { ReactElement } from "react"; import { PropertyMetaInformation } from "../Api/DataTypes/PropertyMetaInformation"; export interface ICustomRenderer { renderTableCell: (target: any, path: string[], property: PropertyMetaInformation, objectType: string) => null | string | ReactElement; renderDetails: (target: any, path: string[], property: PropertyMetaInformation, objectType: string) => null | string | ReactElement; renderEdit: (value: any, property: PropertyMetaInformation, objectType: string, onChange: (value: any) => void) => null | string | ReactElement; } export declare class NullCustomRenderer implements ICustomRenderer { renderTableCell(): null | string | ReactElement; renderDetails(): null | string | ReactElement; renderEdit(): null | string | ReactElement; }