UNPKG

@plurid/plurid-ui-components-react

Version:

Plurid User Interface Components for React

29 lines (28 loc) 1.16 kB
import React from 'react'; import { Theme } from '@plurid/plurid-themes'; import { EntityViewRefAttributes } from "../../../../data/interfaces"; export interface EntityViewProperties { entities: any[]; searchFields: string[]; generalTheme: Theme; interactionTheme: Theme; rowsHeader: JSX.Element; rowTemplate: string; rows?: JSX.Element[]; noRows: string; abstractRowRenderer: (columns: string[], data: Record<string, any>, methods: Record<string, any>) => JSX.Element; actionButtonText?: string; placeholderText?: string; scrollThrottleTime?: number; loading?: number; rowRenderFields?: string[]; rowRenderMethods?: any; actionButtonClick?: () => void; filterUpdate?: (value: any) => void; refresh?: () => void; actionScrollBottom?: (entities: any[]) => void; customRowRenderer?: (columns: string[], data: Record<string, any>, methods: Record<string, any>) => JSX.Element[]; } export type EntityViewType = EntityViewProperties & React.RefAttributes<EntityViewRefAttributes>; declare const EntityView: React.ForwardRefExoticComponent<EntityViewType>; export default EntityView;