waygraph / NavClickBlockOptions
Type Alias: NavClickBlockOptions<Out>
NavClickBlockOptions<
Out> =object
Defined in: src/engine/block/kinds/nav.ts:214
Click-only NavBlock. Same runtime as defineNavBlock with click - use this in app code so you never wonder whether a Nav is url or click (no __waygraphNavClick sniffing at author time). Prefer defineNavBlock only for url / goto deep links.
Type Parameters
Out
Out extends Checkpoint<string>
Properties
checkpoint
checkpoint:
Out
Defined in: src/engine/block/kinds/nav.ts:218
The Checkpoint this Nav lands on: its value (Home).
click
click:
string| ((mem) =>string)
Defined in: src/engine/block/kinds/nav.ts:219
description?
optionaldescription?:string
Defined in: src/engine/block/kinds/nav.ts:216
expect?
optionalexpect?:ExpectList<Out>
Defined in: src/engine/block/kinds/nav.ts:225
What this Block promises wherever it's used (see NavBlockOptions.expect).
from?
optionalfrom?: readonlyCheckpoint<string>[]
Defined in: src/engine/block/kinds/nav.ts:221
Where the click can start: the Checkpoints whose page shows the link. Leave out for "from anywhere".
instanceOptions?
optionalinstanceOptions?:Block<Checkpoint<string>,Out>["instanceOptions"]
Defined in: src/engine/block/kinds/nav.ts:228
name
name:
string
Defined in: src/engine/block/kinds/nav.ts:215
requires?
optionalrequires?: readonlyMemKey<unknown>[]
Defined in: src/engine/block/kinds/nav.ts:222
screenshot?
optionalscreenshot?:StepScreenshot
Defined in: src/engine/block/kinds/nav.ts:227
A screenshot of the page once the step is done (true, or { fullPage: true }): Waygraph Studio shows it on the map.
verify?
Defined in: src/engine/block/kinds/nav.ts:223