# definePageLayout tabEdits type reference

> Inspect the exact accepted type for tabEdits in definePageLayout, including nested options and constraints.

The `tabEdits` property is an input to [definePageLayout](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/definePageLayout).

Tab structure — which tabs and sections to show on the detail page.

## Related declared shape

```
TabEdits
```

## Exact accepted type

```
{ newTabs?: ({ type: "tab_with_sections"; key: TabKey; name: string; sections: ({ type: "fields_section"; section?: SectionReference<NoInfer<O>>; key?: SectionKey; name?: string; fields: ("id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | { field: "id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field>; hidden?: boolean; editable?: boolean; readOnly?: boolean; defaultValue?: SectionFieldDefaultValue | null; height?: number; canBeDeleted?: boolean; })[]; layout?: SectionFieldsLayout; canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_object_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_field_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; layout?: SectionFieldsLayout; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "custom_section"; key: SectionKey; name: string; componentKey: CustomObjectCustomSectionComponentKey; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "reports_section"; key: SectionKey; name: string; reports: { key: string; reportId: string; position: { identifier: string; width: number; height: number; minWidth?: number; minHeight?: number; maxWidth?: number; maxHeight?: number; }; contextualFieldAttrName?: FieldRqlName; visualizationType?: string; }[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "canvas_section"; key: SectionKey; name: string; canvasCompositionId: CanvasCompositionId; inputMapping?: Record<string, string>; })[]; canBeDeleted?: boolean; canBeRenamed?: boolean; canBeMoved?: boolean; } | { type: "custom_tab"; key: TabKey; name: string; componentKey: string; })[]; systemTabEdits?: { [x: string]: { newName?: string; deleted?: boolean; newSections?: ({ type: "fields_section"; section?: SectionReference<NoInfer<O>>; key?: SectionKey; name?: string; fields: ("id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | { field: "id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field>; hidden?: boolean; editable?: boolean; readOnly?: boolean; defaultValue?: SectionFieldDefaultValue | null; height?: number; canBeDeleted?: boolean; })[]; layout?: SectionFieldsLayout; canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_object_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "related_field_section"; key: SectionKey; name: string; relatedObjectRqlName: RelatedObjectRqlName; relatedFieldRqlName: FieldRqlName; fields: FieldRqlName[]; layout?: SectionFieldsLayout; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "custom_section"; key: SectionKey; name: string; componentKey: CustomObjectCustomSectionComponentKey; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "reports_section"; key: SectionKey; name: string; reports: { key: string; reportId: string; position: { identifier: string; width: number; height: number; minWidth?: number; minHeight?: number; maxWidth?: number; maxHeight?: number; }; contextualFieldAttrName?: FieldRqlName; visualizationType?: string; }[]; } | { canBeDeleted?: boolean; canBeRenamed?: boolean; hideName?: boolean; type: "canvas_section"; key: SectionKey; name: string; canvasCompositionId: CanvasCompositionId; inputMapping?: Record<string, string>; })[]; systemSectionEdits?: { [x: string]: { newName?: string; deleted?: boolean; newLayout?: SectionFieldsLayout; newFields?: ("id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field> | { field: "id" | "createdAt" | "created_at" | "updatedAt" | "updated_at" | "systemUpdatedAt" | "system_updated_at" | "externalId" | "external_id" | "name" | "ownerRole" | "owner_role" | "lastModifiedBy" | "last_modified_by" | "createdBy" | "created_by" | NoInfer<O>["fields"][keyof NoInfer<O>["fields"]] | ObjectScoped<NoInfer<O>, Field>; hidden?: boolean; editable?: boolean; readOnly?: boolean; defaultValue?: SectionFieldDefaultValue | null; height?: number; canBeDeleted?: boolean; })[]; newHideName?: boolean; }; }; sectionsOrder?: SectionKey[]; }; }; tabsOrder?: TabKey[]; newTabLayout?: TabLayout | null; }
```

TypeScript signature and generic parameters

```ts
definePageLayout<O extends ObjectReference>(object: O, props: PageLayoutOptions<NoInfer<O>>): DefinedPageLayout<O>;
```

## Related types

-   [TabKey](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TabKey-97f758da)
-   [SectionReference](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/SectionReference-a1fcbf01)
-   [SectionKey](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/SectionKey-510e9c1d)
-   [ObjectScoped](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ObjectScoped-8d774b33)
-   [Field](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldReference-517a57fd)
-   [SectionFieldDefaultValue](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/SectionFieldDefaultValue-cccad2d6)
-   [SectionFieldsLayout](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/SectionFieldsLayout-07e0cf84)
-   [RelatedObjectRqlName](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/RelatedObjectRqlName-27632088)
-   [FieldRqlName](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldRqlName-988f7d63)
-   [CustomObjectCustomSectionComponentKey](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/CustomObjectCustomSectionComponentKey-81fe3b9f)
-   [CanvasCompositionId](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/CanvasCompositionId-c41ab195)
-   [TabLayout](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TabLayout-6a95cfae)
-   [TabEdits](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/TabEdits-a68934c7)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/definePageLayout-tabEdits-ee39f78e

> For the complete documentation index, see [llms.txt](https://developer.rippling.com/llms.txt). Public pages have a Markdown version at the same URL with .md added.
