Kit > healthstack.kit.task.survey.question > SubStepHolder

SubStepHolder

[androidJvm]
class SubStepHolder(val id: String, val name: String, val subSteps: List<List<QuestionSubStep<*, *>>>)

An object for holding one or more SubSteps

SubStep's healthstack.kit.view.component.Component only renders a partial UI component.

So, a Component has to depend on higher UI object.

SubStepHolder helps managing SubSteps, and integrating UIs of Components

For example, multiple QuestionSubSteps can be managed by a SubStepHolder.

Constructors

SubStepHolder

[androidJvm]
fun SubStepHolder(id: String, name: String, subSteps: List<List<QuestionSubStep<*, *>>>)

Functions

Name Summary
isSufficient

[androidJvm]
fun isSufficient(): Boolean
A method to get result using its subSteps.

Render

[androidJvm]
@Composable
fun Render(callbackCollection: CallbackCollection, index: Int)
A method for rendering UI.

Properties

Name Summary
id

[androidJvm]
val id: String
id

name

[androidJvm]
val name: String
name

subSteps

[androidJvm]
val subSteps: List<List<QuestionSubStep<*, *>>>
a list of subSteps to manage