Skip to content

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 ​

readonly access: Readonly<Record<string, readonly string[] | 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 ​

readonly description: string

Defined in: src/engine/block/kinds/layout.ts:67


do ​

readonly do: PageMethods<D>

Defined in: src/engine/block/kinds/layout.ts:71

Its actions as Methods, by name: .method(TopBar.do.signOut).


go ​

readonly go: { 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 ​

readonly interrupts: readonly string[]

Defined in: src/engine/block/kinds/layout.ts:84

The names of its interrupts.


name ​

readonly name: string

Defined in: src/engine/block/kinds/layout.ts:66


on ​

readonly on: readonly string[] | undefined

Defined in: src/engine/block/kinds/layout.ts:80

The pages it was given with on, if any.


opens ​

readonly opens: 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 ​

readonly read: 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 ​

readonly readBlock: ReadBlock | undefined

Defined in: src/engine/block/kinds/layout.ts:76

The Read Block that reads it.

waygraph 0.18.3 (alpha) · Node 24+ · peer @playwright/test ^1.40.0 · syntax may change before 1.0: see what was removed