checkItemDrawer

fun checkItemDrawer(modifier: Modifier = Modifier, customBackgroundColor: Color = Color.Transparent, clickable: Boolean = true, onSelected: (Boolean, Int) -> Unit = { _, _ -> }, dragIconWidth: Dp = 16.dp, config: DrawConfig, onCheckedChange: (Action.StoryStateChange) -> Unit = {}, onDragHover: (Int) -> Unit, onDragStart: () -> Unit, onDragStop: () -> Unit, moveRequest: (Action.Move) -> Unit, checkBoxPadding: PaddingValues = PaddingValues(0.dp), isDesktop: Boolean, startContent: @Composable (StoryStep, DrawInfo) -> Unit? = { step, drawInfo -> CompositionLocalProvider(LocalMinimumInteractiveComponentEnforcement provides false) { // Spacer(modifier = Modifier.width(8.dp)) Checkbox( checked = step.checked == true, onCheckedChange = { checked -> onCheckedChange( Action.StoryStateChange( step.copy(checked = checked), drawInfo.position ) ) }, modifier = Modifier.padding(checkBoxPadding), enabled = drawInfo.editable, ) } }, messageDrawer: @Composable RowScope.() -> SimpleTextDrawer): StoryStepDrawer

Check item drawer. Draws a checkbox followed by a text.


fun checkItemDrawer(manager: WriteopiaStateManager, modifier: Modifier = Modifier, dragIconWidth: Dp = 16.dp, config: DrawConfig, checkBoxPadding: PaddingValues = PaddingValues(0.dp), isDesktop: Boolean, messageDrawer: @Composable RowScope.() -> SimpleTextDrawer): StoryStepDrawer