Defines a list view for a custom object using that object's typed field references. Include the returned view in the manifest's components to deploy it.
import { defineListView } from '@rippling/rippling-sdk';
Properties
| Property | Required | Type | Description |
|---|---|---|---|
apiName | Required | string | Stable API name for this view. Use a name unique across custom objects in the company. |
description | Required | null | string | Human-readable description of this view. |
fields | Required | readonly NoInfer<DefinitionFieldReference<TObject>>[] | Columns to display, using field references from this object or standard field names. Include at least one field. |
isPublic | Required | boolean | Whether this view is visible to all users ( |
name | Required | string | Display name of this list view shown in the UI (e.g. |
columnConfig | Optional | Record<string, ListViewColumnConfig> | Per-column configuration overrides keyed by field API name. Documented default: |
layeredConditionsTree | Optional | null | { [x: string]: JsonValue; } | Structured filter conditions, validated by the Metadata API. |
objectScope | Optional | ObjectScope | Record scope for this view. One of Documented default: |
orderBy | Optional | NoInfer<DefinitionFieldReference<TObject>> | Field to sort by; supply |
rqlFilter | Optional | string | RQL filter expression to pre-filter records shown in this view (e.g. Documented default: |
sortOrder | Optional | SortOrder | Sort direction. One of |
Parameters
| Parameter | Required | Type | Description |
|---|---|---|---|
object | Required | TObject | - Custom object whose records this view displays. |
TypeScript signature
defineListView<TObject extends ObjectReference>(object: TObject, props: DefineListViewProps<TObject>): ListViewDef;
Returns
A list-view component for use in defineManifest.
ListViewDef
Availability
| Capability | Support |
|---|---|
| Pull into a project | Supported |
| Runtime operations | Not available for this helper |