-
public final class CascadeKt
-
-
Method Summary
Modifier and Type Method Description final static UnitCascadeDropdownMenu(Boolean expanded, Function0<Unit> onDismissRequest, Modifier modifier, DpOffset offset, Dp fixedWidth, Dp shadowElevation, PopupProperties properties, CascadeState state, Shape shape, Function1<CascadeColumnScope, Unit> content)Material Design dropdown menu with support for nested menus. -
-
Method Detail
-
CascadeDropdownMenu
@Composable() final static Unit CascadeDropdownMenu(Boolean expanded, Function0<Unit> onDismissRequest, Modifier modifier, DpOffset offset, Dp fixedWidth, Dp shadowElevation, PopupProperties properties, CascadeState state, Shape shape, Function1<CascadeColumnScope, Unit> content)
Material Design dropdown menu with support for nested menus. See DropdownMenu for documentation about its parameters.
Example usage:
var expanded by rememberSaveable { mutableStateOf(false) } CascadeDropdownMenu( expanded = expanded, onDismissRequest = { expanded = false } ) { DropdownMenuItem( text = { Text("Horizon") }, children = { DropdownMenuItem( text = { Text("Zero Dawn") }, onClick = { … } ) DropdownMenuItem( text = { Text("Forbidden West") }, onClick = { … } ) } ) }- Parameters:
fixedWidth- A width that will be shared by all nested menus.shadowElevation- A value between 0dp and 8dp.
-
-
-
-