NavModel
NavModel =
object
Defined in: packages/schema/src/model.ts:1601
Where a resource sits in the sidebar (.nav(...)); see Sidebar.
Properties
Section titled “Properties”create?
Section titled “create?”
optionalcreate?: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.
Union Members
Section titled “Union Members”true
Type Literal
Section titled “Type Literal”{ label: string; }
label:
string
The link’s text, in place of “New
creatorsOnly?
Section titled “creatorsOnly?”
optionalcreatorsOnly?: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.
group?
Section titled “group?”
optionalgroup?:string
Defined in: packages/schema/src/model.ts:1607
The sidebar group it sits in; its database schema when omitted.
hidden?
Section titled “hidden?”
optionalhidden?:boolean
Defined in: packages/schema/src/model.ts:1603
Hide the resource from the sidebar, for line or link tables.
order?
Section titled “order?”
optionalorder?:number
Defined in: packages/schema/src/model.ts:1609
Where it sorts within its group.
recent?
Section titled “recent?”
optionalrecent?:NavRecentModel
Defined in: packages/schema/src/model.ts:1611
A few of its records listed under its entry.
start?
Section titled “start?”
optionalstart?: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.
tenant?
Section titled “tenant?”
optionaltenant?:"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.