ExpanderRow

@Composable
fun ExpanderRow(expanded: Boolean, title: String, modifier: Modifier = Modifier, enableExpansion: Boolean = true, showEnableSwitch: Boolean = false, subtitle: String? = null, subtitleLines: Int = 0, titleLines: Int = 0, selectable: Boolean = true, activatable: Boolean = true, titleSelectable: Boolean = false, useMarkup: Boolean = true, useUnderline: Boolean = false, onEnableExpansion: () -> Unit = {}, onExpand: () -> Unit = {}, content: @Composable () -> Unit = {})

Creates a org.gnome.adw.ExpanderRow which contains widget that can be hidden if desired.

Parameters

expanded

Whether the row is expanded.

title

The title for this row.

modifier

Compose Modifier for layout and styling.

enableExpansion

Whether the row can be expanded.

showEnableSwitch

Shows a switch to control enableExpansion.

subtitle

The subtitle for this row.

subtitleLines

The number of lines at the end of which the subtitle label will be ellipsized.

titleLines

The number of lines at the end of which the title label will be ellipsized.

selectable

Whether the row can be selected.

activatable

Whether the component can be activated.

titleSelectable

Whether the title is selectable.

useMarkup

Whether to use Pango markup for the title and subtitle.

useUnderline

Whether an embedded underline in the title or subtitle indicates a mnemonic.

onEnableExpansion

Callback triggered when the enable switch is triggered.

onExpand

Callback triggered when the row is expanded or contracted.

content

The composable content revealed or hidden by the row.

TODO: Prefix/suffix