# ListViewDef

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

Defines a list view and registers it with the manifest.

A list view defines which fields appear as columns, their sort order, and an optional RQL filter. You can define multiple views per custom object; each appears as a selectable view in the object's list page.

## Type definition

```
export declare class ListViewDef {
    constructor(customObject: ObjectReference, props: ListViewDefProps & {
        apiName: Config['api_name'];
    });
    getViewId(): string;
    getCustomObjectApiName(): string;
    getApiName(): Config['api_name'];
    toDict(): Config;
}
```

## Related types

-   [ObjectReference](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ObjectReference-7acb30a9)
-   [ListViewDefProps](https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ListViewDefProps-bbd7888d)

Source: https://developer.rippling.com/documentation/js-sdk/metadata-sdk/reference/types/ListViewDef-adaac9dd

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