Package-level declarations
Types
Link copied to clipboard
Scope for the children of a DropdownMenu
Link copied to clipboard
Scope for the children of a MultiChoiceComboBox
Link copied to clipboard
Scope for the children of a SingleChoiceComboBox
Functions
Link copied to clipboard
fun DropdownMenu(expanded: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, offset: DpOffset = DpOffset(0.dp, 0.dp), properties: PopupProperties = PopupProperties(focusable = true), scrollState: ScrollState = rememberScrollState(), content: @Composable DropdownMenuItemColumnScope.() -> Unit)
Link copied to clipboard
fun DropdownMenuGroupItem(title: @Composable () -> Unit, modifier: Modifier = Modifier, content: @Composable DropdownMenuItemColumnScope.() -> Unit)
A group of DropdownMenuItem with a title label to describe all items from this group.
Link copied to clipboard
fun DropdownMenuItem(text: @Composable () -> Unit, onClick: () -> Unit, modifier: Modifier = Modifier, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, enabled: Boolean = true, contentPadding: PaddingValues = PaddingValues(
horizontal = 16.dp,
vertical = 8.dp,
), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
Link copied to clipboard
fun DropdownMenuItemColumnScope.DropdownMenuItem(text: @Composable () -> Unit, onClick: () -> Unit, modifier: Modifier = Modifier, leadingIcon: @Composable () -> Unit? = null, trailingIcon: @Composable () -> Unit? = null, enabled: Boolean = true, contentPadding: PaddingValues = PaddingValues(
horizontal = 16.dp,
vertical = 8.dp,
), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun MultiChoiceDropdownItemColumnScope.DropdownMenuItem(text: @Composable () -> Unit, checked: Boolean, onCheckedChange: (Boolean) -> Unit, modifier: Modifier = Modifier, trailingIcon: @Composable () -> Unit? = null, enabled: Boolean = true, contentPadding: PaddingValues = PaddingValues(
horizontal = 16.dp,
vertical = 8.dp,
), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
fun SingleChoiceDropdownItemColumnScope.DropdownMenuItem(text: @Composable () -> Unit, selected: Boolean, onClick: () -> Unit, modifier: Modifier = Modifier, trailingIcon: @Composable () -> Unit? = null, enabled: Boolean = true, contentPadding: PaddingValues = PaddingValues(
horizontal = 16.dp,
vertical = 8.dp,
), interactionSource: MutableInteractionSource = remember { MutableInteractionSource() })
Link copied to clipboard
fun ExposedDropdownMenuBoxScope.ExposedDropdownMenu(expanded: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, scrollState: ScrollState = rememberScrollState(), matchTextFieldWidth: Boolean = true, content: @Composable DropdownMenuItemColumnScope.() -> Unit)
Popup which contains content for Exposed Dropdown Menu. Should be used inside the content of ExposedDropdownMenuBox.
Link copied to clipboard
fun ExposedDropdownMenuBoxScope.MultipleChoiceExposedDropdownMenu(expanded: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, scrollState: ScrollState = rememberScrollState(), matchTextFieldWidth: Boolean = true, content: @Composable MultiChoiceDropdownItemColumnScope.() -> Unit)
Popup which contains content for Exposed Dropdown Menu. Should be used inside the content of ExposedDropdownMenuBox.
Link copied to clipboard
fun DropdownMenuItemColumnScope.NoContentItem(modifier: Modifier = Modifier, text: String = stringResource(R.string.spark_dropdown_menu_item_no_result_label))
Displays a "no content" text item.
Link copied to clipboard
fun ExposedDropdownMenuBoxScope.SingleChoiceExposedDropdownMenu(expanded: Boolean, onDismissRequest: () -> Unit, modifier: Modifier = Modifier, scrollState: ScrollState = rememberScrollState(), matchTextFieldWidth: Boolean = true, content: @Composable SingleChoiceDropdownItemColumnScope.() -> Unit)
Popup which contains content for Exposed Dropdown Menu. Should be used inside the content of ExposedDropdownMenuBox.