Skip to content

NavModel

NavModel = object

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

Where a resource sits in the sidebar (.nav(...)); see Sidebar.

optional create?: true | { label: string; }

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

A link under the entry to the resource’s create form (its create page when the view has one), for whoever may create; true reads “New ”, { label } its own text.

true


{ label: string; }

label: string

The link’s text, in place of “New ”.


optional creatorsOnly?: true

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

Show the entry only to whoever the list offers New, for a list that is there to make records, such as the tables users add.


optional group?: string

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

The sidebar group it sits in; its database schema when omitted.


optional hidden?: boolean

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

Hide the resource from the sidebar, for line or link tables.


optional order?: number

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

Where it sorts within its group.


optional recent?: NavRecentModel

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

A few of its records listed under its entry.


optional start?: NavStartModel

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

The record the app opens at /, when the entry comes first of those that name one and a record matches.


optional tenant?: "current"

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

current: the entry opens the list on the caller’s own tenant, and its recent records are that tenant’s, for a resource whose lists read across tenants (.tenant(pick, { across })). /meta writes it into the list’s opening filter and the recent records’ filter as tenantField = "<tenant>", which the person can clear or change.