Jet Lime Extended Event
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
The modifier to be applied to the event.
The style of the JetLimeColumn event, defaulting to JetLimeEventDefaults.eventStyle.
The optional additional content of the event, placed on the left side of timeline.
The maximum width allowed for additionalContent
The main content of the event, placed on the right side of timeline.