waygraph / Layout
Interface: Layout<G, D, R>
Defined in: src/engine/block/kinds/layout.ts:65
Type Parameters
G
G extends Record<string, LayoutLink>
D
D extends Record<string, PageMethodEntry>
R
R extends PageRead = Record<never, never>
Properties
access
readonlyaccess:Readonly<Record<string, readonlystring[] |undefined>>
Defined in: src/engine/block/kinds/layout.ts:78
Who's given each link (for), by name: what the access tests and waygraph check read. An action's is its Method's.
description
readonlydescription:string
Defined in: src/engine/block/kinds/layout.ts:67
do
readonlydo:PageMethods<D>
Defined in: src/engine/block/kinds/layout.ts:71
Its actions as Methods, by name: .method(TopBar.do.signOut).
go
readonlygo: { readonly [K in string | number | symbol]: LinkNav<G[K]> }
Defined in: src/engine/block/kinds/layout.ts:69
Its links as Navs, by name: gotoPage(Sidebar.go.equipment).
interrupts
readonlyinterrupts: readonlystring[]
Defined in: src/engine/block/kinds/layout.ts:84
The names of its interrupts.
name
readonlyname:string
Defined in: src/engine/block/kinds/layout.ts:66
on
readonlyon: readonlystring[] |undefined
Defined in: src/engine/block/kinds/layout.ts:80
The pages it was given with on, if any.
opens
readonlyopens:string|undefined
Defined in: src/engine/block/kinds/layout.ts:82
The button that shows its links, for a layout that hides them (opens).
read
readonlyread:PageReadKeys<R>
Defined in: src/engine/block/kinds/layout.ts:74
The keys of what it shows, to check by: Layout.read.links.is([...]).
readBlock
readonlyreadBlock:ReadBlock|undefined
Defined in: src/engine/block/kinds/layout.ts:76
The Read Block that reads it.