Kit > healthstack.kit.task.survey.question.component > Component

Component

[androidJvm]
abstract class Component<T : QuestionModel<*>>

A UI rendering object for SubStep such as healthstack.kit.step.sub.QuestionSubStep.

It has composable function Render, which renders UI using data in healthstack.kit.model.Model.

It looks similar with healthstack.kit.view.View.

But Component cannot render a whole page unlike View.

Component can only render a partial "UI component" such as one question in a survey

Constructors

Component

[androidJvm]
fun Component()

Functions

Name Summary
Render

[androidJvm]
@Composable
abstract fun Render(model: T, callbackCollection: CallbackCollection)
A method rendering UI.

Inheritors

Name
QuestionComponent