Skip to content

ListModel

ListModel = object

Defined in: packages/schema/src/model.ts:769

A view’s list page (.list(...)).

columns: string[]

Defined in: packages/schema/src/model.ts:771

The table’s columns, in order.


optional default?: string

Defined in: packages/schema/src/model.ts:781

The display the list opens in when the address names none; the table when omitted.


optional displays?: ListDisplayModel[]

Defined in: packages/schema/src/model.ts:779

Other ways to show the list besides its table, in the order the switch shows them after it.


optional drag?: ListDragModel

Defined in: packages/schema/src/model.ts:790

What dragging changes, each off unless the list turns it on; see ListDragModel.


optional editable?: string[]

Defined in: packages/schema/src/model.ts:788

The fields among columns edited in their cell, by a user who may change the record and the field; see Editing in the list.


optional filter?: string

Defined in: packages/schema/src/model.ts:775

An AIP-160 filter the list opens with when its address names none; the person can clear or change it, and a link’s own filter replaces it.


optional relatedColumns?: RelatedColumnModel[]

Defined in: packages/schema/src/model.ts:783

The columns of related records among columns, each named there by its name.


optional search?: string[]

Defined in: packages/schema/src/model.ts:777

Defaults for the UI’s search box. ResourceModel.search is authoritative for what search(...) matches on the server.


optional sort?: SortSpec

Defined in: packages/schema/src/model.ts:773

The order the list starts in.