PollOptionList

fun PollOptionList(modifier: Modifier = Modifier, title: String = stringResource(id = R.string.stream_compose_poll_option_title), optionItems: List<PollOptionItem> = emptyList(), onQuestionsChanged: (List<PollOptionItem>) -> Unit)

The Poll Creation option list that is a Composable that enables users to create and reorder question items easily.

Parameters

modifier

The Modifier for styling.

title

The title of the question list.

optionItems

The list of pre-questions. The type of the list is PollOptionItem.

onQuestionsChanged

This lambda will be executed when the item of the question list is reordered.