Files
payload/test/admin/components/CustomGroupCell/index.tsx
Patrik 20f7017758 feat: show nested fields in named tabs as separate columns in the list view (#12530)
### What

Continuation of #7355 by extending the functionality to named tabs.

Updates `flattenFields` to hoist nested fields inside named tabs to the
top-level field array when `moveSubFieldsToTop` is enabled.

Also fixes an issue where group fields with custom cells were being
flattened out.

Now, group fields with a custom cell components remain available as
top-level columns.

Fixes #12563
2025-05-27 14:15:47 -07:00

10 lines
263 B
TypeScript

'use client'
import type { DefaultCellComponentProps } from 'payload'
import React from 'react'
export const CustomGroupCell: React.FC<DefaultCellComponentProps> = (props) => {
return <div>{`Custom group cell: ${props?.rowData?.title || 'No data'}`}</div>
}