+ +
+

JetLimeExtendedEvent

+
+
fun JetLimeExtendedEvent(modifier: Modifier = Modifier, style: JetLimeEventStyle = JetLimeEventDefaults.eventStyle(EventPosition.END), additionalContent: @Composable BoxScope.() -> Unit = { }, additionalContentMaxWidth: Dp = AdditionalContentMaxWidth, content: @Composable () -> Unit)

Should only be used with a JetLimeColumn for a vertical arrangement of events.

Composable function for creating a JetLimeColumn event which has 2 slots for content. The main content will be drawn on the right side of the timeline and the additional content will be drawn on the left side of the timeline. The additional content is optional, and has a maximum width constraint defined by the JetLimeEventDefaults.AdditionalContentMaxWidth.

Example usage:

val items = remember { getItemsList() }

JetLimeColumn(
itemsList = ItemsList(items),
key = { _, item -> item.id },
style = JetLimeDefaults.columnStyle(),
) { index, item, position ->
JetLimeExtendedEvent(
style = JetLimeEventDefaults.eventStyle(position = position),
additionalContent = { ComposableAdditionalContent(item.icon) }
) {
ComposableMainContent(item = item.content)
}
}

Parameters

modifier

The modifier to be applied to the event.

style

The style of the JetLimeColumn event, defaulting to JetLimeEventDefaults.eventStyle.

additionalContent

The optional additional content of the event, placed on the left side of timeline.

additionalContentMaxWidth

The maximum width allowed for additionalContent

content

The main content of the event, placed on the right side of timeline.

+