Section
fun Section(modifier: Modifier = Modifier, isLastSection: Boolean = false, title: String, description: String?, completedFields: Int, totalFields: Int, state: SectionState, errorCount: Int, errorMessage: String? = null, warningCount: Int, warningMessage: String? = null, onNextSection: () -> Unit, onSectionClick: () -> Unit, content: @Composable ColumnScope.() -> Unit)
DHIS2 Section
Parameters
modifier
: optional modifier.
is Last Section
: whether section is last or not.
title
: the title to be shown.
description
: optional description to be shown.
completed Fields
: number of completed fields.
total Fields
: total number of fields.
state
: SectionState can be OPEN, CLOSE, FIXED or NO_HEADER.
error Count
: number of errors in section.
error Message
: error message to be used.
warning Count
: number of warnings in section.
warning Message
: warning message to be used.
on Next Section
: access to next section clicked event.
on Section Click
: access to section clicked event.
content
: composable content to be displayed within the section.