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.

isLastSection

: whether section is last or not.

title

: the title to be shown.

description

: optional description to be shown.

completedFields

: number of completed fields.

totalFields

: total number of fields.

state

: SectionState can be OPEN, CLOSE, FIXED or NO_HEADER.

errorCount

: number of errors in section.

errorMessage

: error message to be used.

warningCount

: number of warnings in section.

warningMessage

: warning message to be used.

onNextSection

: access to next section clicked event.

onSectionClick

: access to section clicked event.

content

: composable content to be displayed within the section.