Files
payloadcms/docs/fields
Said Akhrarov cd546b3125 feat(ui): add support for disabling join field row types (#12738)
### What?
This PR adds a new `admin.disableRowTypes` config to `'join'` fields
which hides the `"Type"` column from the relationship table.

### Why?
While the collection type column _can be_ helpful for providing
information, it's not always necessary and can sometimes be redundant
when the field only has a singular relationTo. Hiding it can be helpful
by removing visual noise and providing editors the data directly.

### How?
By threading `admin.disableRowTypes` directly to the `getTableState`
function of the `RelationshipTable` component.

**With row types** (via `admin.disableRowTypes: false | undefined` OR
default for polymorphic):

![image](https://github.com/user-attachments/assets/22b55477-cf56-4b0e-a845-e6f2b39efe3b)

**Without row types** (default for monomorphic):

![image](https://github.com/user-attachments/assets/3a2bb0ba-2d5e-4299-8689-249b2d3fefe2)
2025-10-03 11:10:10 +01:00
..
2025-07-14 23:55:16 -04:00
2025-09-22 14:20:25 -07:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00
2025-07-14 23:55:16 -04:00