# CustomObjectPageLayout

> Type reference for CustomObjectPageLayout in the Rippling SDK, including its public shape and related types.

Page-layout authoring state and mutations, registered through definePageLayout.

A page layout controls the tab structure, section groupings, header fields, and visibility conditions on a custom object's record detail page. You would normally define one layout per custom object using `apiName: 'default'`.

\> \*\*Caution:\*\* all keys inside `tabEdits` and `headerEdits` must be camelCase. > Snake\_case keys are silently dropped on the wire and produce an empty layout.

## Type definition

```
export declare class CustomObjectPageLayout {
    constructor(customObject: ObjectReference, props: CustomObjectPageLayoutProps);
    getLayoutId(): string;
    getApiName(): string;
    getCustomObjectApiName(): string;
    addField(field: CustomObjectFieldInput, options: AddPageLayoutFieldOptions): this;
    addFields(fields: CustomObjectFieldInput[], options: AddPageLayoutFieldsOptions): this;
    removeField(field: Field | string, options?: RemovePageLayoutFieldOptions): this;
    removeFields(fields: Array<Field | string>, options?: RemovePageLayoutFieldOptions): this;
    addSection(section: PageLayoutSection, options: AddPageLayoutSectionOptions): this;
    removeSection(section: CustomObjectFieldSection, options?: RemovePageLayoutSectionOptions): this;
    removeSection(sectionKey: string, options?: RemovePageLayoutSectionOptions): this;
    removeSection(sectionKey: string, options: RemoveSystemPageLayoutSectionOptions): this;
    addTab(tab: PageLayoutTab, options?: AddPageLayoutTabOptions): this;
    removeTab(tabKey: string, options?: RemovePageLayoutTabOptions): this;
    addHeaderField(field: Field | NewHeaderField, options?: AddHeaderFieldOptions): this;
    removeHeaderField(fieldOrKey: Field | string, options?: RemoveHeaderFieldOptions): this;
    setTitleField(field: Field): this;
    setTitleField(fieldApiName: FieldRqlName): this;
    removeTitleField(): this;
    setDescriptionField(field: Field): this;
    setDescriptionField(fieldApiName: FieldRqlName): this;
    removeDescriptionField(): this;
    toDict(): Config;
}
```

## Related types

-   [ObjectReference](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ObjectReference-7acb30a9)
-   [CustomObjectPageLayoutProps](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/CustomObjectPageLayoutProps-08d3a7e3)
-   [CustomObjectFieldInput](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/CustomObjectFieldInput-c6898f8f)
-   [AddPageLayoutFieldOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AddPageLayoutFieldOptions-fcc2b9c8)
-   [AddPageLayoutFieldsOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AddPageLayoutFieldsOptions-87ed3451)
-   [Field](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldReference-517a57fd)
-   [RemovePageLayoutFieldOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/RemovePageLayoutFieldOptions-d2503f80)
-   [PageLayoutSection](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/PageLayoutSection-b1771c7b)
-   [AddPageLayoutSectionOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AddPageLayoutSectionOptions-1f4c8c88)
-   [CustomObjectFieldSection](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldSectionReference-f076b56f)
-   [RemovePageLayoutSectionOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/RemovePageLayoutSectionOptions-cd6234b6)
-   [RemoveSystemPageLayoutSectionOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/RemoveSystemPageLayoutSectionOptions-f77aae2a)
-   [PageLayoutTab](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/PageLayoutTab-9c9a108d)
-   [AddPageLayoutTabOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AddPageLayoutTabOptions-f862b0dd)
-   [RemovePageLayoutTabOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/RemovePageLayoutTabOptions-9223dcb8)
-   [NewHeaderField](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/NewHeaderField-4a533c45)
-   [AddHeaderFieldOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/AddHeaderFieldOptions-15ad2f81)
-   [RemoveHeaderFieldOptions](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/RemoveHeaderFieldOptions-01c8e33c)
-   [FieldRqlName](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/FieldRqlName-988f7d63)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/CustomObjectPageLayout-e39791af

> 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.
