smrt
Open the smrt source on GitHub Switch to dark color scheme
← All UI components

Projects · Components

ProjectInterview

No summary has been written for ProjectInterview. Everything below is generated from the declaration shipped in 0.62.10 and describes the real contract.

Public export

typescript
import { ProjectInterview } from '@happyvertical/smrt-projects/svelte';
Import path
@happyvertical/smrt-projects/svelte
Props
8
Props described
8 of 8
Bindable state
0
Callback events
3
Verified release
0.62.10

Props

NameTypeRequiredDescription
questionsProjectQuestionView[]NoAuthorized questions, in the order the host wants them asked.
decisionsProjectDecisionView[]NoAuthorized decisions, asked after the questions in the host's order.
busybooleanNoDisable submissions and navigation while the host saves a change.
framingRecord<string, ProjectInterviewFraming>NoPlain-language framing keyed by question or decision id.
startIndexnumberNoZero-based record to open first (e.g. a resumed position). Defaults to the first open record; read once on mount.
onanswer(input: ProjectQuestionAnswerInput) => void | Promise<void>NoSave an explicit answer with the observed revision.
ondecide(input: ProjectDecisionResolveInput) => void | Promise<void>NoSave a selected outcome and optional rationale with the observed revision.
onadvance(detail: ProjectInterviewAdvanceDetail) => voidNoCalled whenever the interview moves to another record or completes.

Bindable state

This component has no bindable public state.

Callback events

  • onanswer(input: ProjectQuestionAnswerInput) => void | Promise<void>
  • ondecide(input: ProjectDecisionResolveInput) => void | Promise<void>
  • onadvance(detail: ProjectInterviewAdvanceDetail) => void

Examples and explanation