Scoop API

scoop:scoop.ui.component:0.1.0

QuestionnaireProps

class QuestionnaireProps

source · line 32
public
public class QuestionnaireProps public constructor(
    public val state: QuestionnaireState,
    public val onSubmit: (QuestionnaireResult) -> Unit,
    public val enabled: Boolean = true,
    public val busy: Boolean = false,
    public val continueEnabled: Boolean = true,
    public val autoFocus: Boolean = false,
    public val shortcuts: Boolean = true,
    public val strings: QuestionnaireStrings = QuestionnaireStrings(),
    public val onAnswerChange: (QuestionKey) -> Unit = { _ -> Unit },
    public val part: (QuestionnairePart, View) -> View = { _, content -> content },
    public val inputFocus: FocusOptions = FocusOptions(),
    public val choiceFocus: (QuestionKey, QuestionChoiceKey?) -> FocusOptions =
        { _, _ -> FocusOptions() },
    public val focusOutline: OutlineStyle? = None,
    public val fonts: FontCollection? = None,
    public val theme: ThemeSource? = None,
    public val style: StyleOverride = styleOverride()
)

constructor constructor

source · line 32
public
constructor(public val state: QuestionnaireState, public val onSubmit: (QuestionnaireResult) -> Unit, public val enabled: Boolean = true, public val busy: Boolean = false, public val continueEnabled: Boolean = true, public val autoFocus: Boolean = false, public val shortcuts: Boolean = true, public val strings: QuestionnaireStrings = QuestionnaireStrings(), public val onAnswerChange: (QuestionKey) -> Unit = { _ -> Unit }, public val part: (QuestionnairePart, View) -> View = { _, content -> content }, public val inputFocus: FocusOptions = FocusOptions(), public val choiceFocus: (QuestionKey, QuestionChoiceKey?) -> FocusOptions =
        { _, _ -> FocusOptions() }, public val focusOutline: OutlineStyle? = None, public val fonts: FontCollection? = None, public val theme: ThemeSource? = None, public val style: StyleOverride = styleOverride())