Package 

Class LikertQuestionViewKt

    • Method Summary

      Modifier and Type Method Description
      final static Unit LikertQuestionView(SurveyQuestion question, SurveyAnswer answer, Function1<SurveyAnswer, Unit> onAnswer, TextStyle questionTextStyle) SPEC-070-A J.1 — Likert scale question.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • LikertQuestionView

        @Composable() final static Unit LikertQuestionView(SurveyQuestion question, SurveyAnswer answer, Function1<SurveyAnswer, Unit> onAnswer, TextStyle questionTextStyle)

        SPEC-070-A J.1 — Likert scale question.

        Renders a horizontal numeric scale (default 1..5; configurable via likertConfig.min / likertConfig.max) with optional left/right anchor labels (e.g. "Strongly Disagree" → "Strongly Agree"). Mirrors the visual style of NpsQuestionView (rounded radio-style buttons) so the existing survey appearance theme applies cleanly. Selected button uses the MaterialTheme primary color so the survey-resolved theme accent flows through automatically.

        Records the answer as the selected integer rating via SurveyAnswer(question.id, ratingInt) — same pattern as NPS / CSAT / rating views, so the upload + show_if branching pipelines work without additional changes.