Renders a view to display record data with search capabilities.

  • Type Parameters

    • Data extends unknown = IData

      The type of the data object.

    • Payload = any

      The type of the payload object.

    Parameters

    • props: IRecordViewProps<Data, Payload>

      The component props.

      Interface for the props of the RecordView component.

      • OptionalAfterCollapseLabel?: any
      • OptionalAfterSearch?: any
      • Optionalbackground?: string
      • OptionalBeforeCollapseLabel?: any
      • OptionalBeforeSearch?: any
      • OptionalCustomItem?: any
      • data: Data
      • OptionalEmptyItem?: any
      • OptionalexpandList?: string[]
      • OptionalformatKey?: (key: string, path: string) => ReactNode
      • OptionalformatSearch?: (key: string, value: null | string | number | boolean, path: string) => string
      • OptionalformatValue?: (
            key: string,
            value: null | string | number | boolean,
            path: string,
        ) => ReactNode
      • OptionalkeyWidth?: any
      • OptionalmaxItems?: number
      • OptionalonSearchChanged?: (search: string) => void
      • Optionalpayload?: Payload
      • Optionalsearch?: string
      • OptionaltotalWidth?: number
      • OptionalvalueWidth?: any
      • OptionalwithExpandAll?: boolean
      • OptionalwithExpandLevel?: number
      • OptionalwithExpandRoot?: boolean

    Returns Element

    The rendered component.